File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,11 +9,7 @@ install:
99 - pip install ruamel.yaml
1010
1111script :
12- - >-
13- git clone https://${GH_TOKEN}@github.com/cotes2020/blog-builder.git
14- ../blog-builder --depth=1 -q
15- - cp -r ../blog-builder/framework/* .
16- - bash _cibuild.sh
12+ - bash _scripts/travis/cibuild.sh
1713
1814branches :
1915 only : master
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Travis CI build jobs.
4+ #
5+ # © 2019 Cotes Chung
6+ # Published under MIT License
7+
8+ if [[ $TRAVIS_PULL_REQUEST = " false" ]]; then # triggered by author
9+
10+ BUILDER=../blog-builder
11+
12+ git clone https://${GH_TOKEN} @github.com/cotes2020/blog-builder.git \
13+ $BUILDER --depth=1 -q
14+
15+ cp -r $BUILDER /framework/* .
16+ bash _cibuild.sh
17+
18+ else # triggered by Pull Request
19+
20+ bundle install --path vendor/bundle --quiet
21+ python _scripts/py/init_all.py
22+
23+ build_cmd=" JEKYLL_ENV=production bundle exec jekyll build"
24+
25+ echo " \$ $build_cmd "
26+ eval $build_cmd
27+
28+ fi
You can’t perform that action at this time.
0 commit comments