1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Updated the CI config.

This commit is contained in:
Cotes Chung
2020-01-21 00:32:20 +08:00
parent 1f8b81965d
commit 47a32fcce3
3 changed files with 35 additions and 28 deletions

View File

@@ -8,30 +8,15 @@
if [[ $TRAVIS_PULL_REQUEST = "false" ]]; then # triggered by author
BUILDER=../blog-builder
git clone https://${GH_PAT}@github.com/${GH_USER}/${BUILDER_REPO}.git \
../${BUILDER_REPO} --depth=1 -q
git clone https://${GH_TOKEN}@github.com/cotes2020/blog-builder.git \
$BUILDER --depth=1 -q
cp -r $BUILDER/framework/* .
cp -r ../${BUILDER_REPO}/framework/* .
bash _cibuild.sh
else # triggered by Pull Request
SAFE_DOMAIN="cdn.jsdelivr.net"
python _scripts/py/init_all.py
build_cmd="bundle exec jekyll build"
echo "\$ $build_cmd"
eval $build_cmd
bundle exec htmlproofer _site/ \
--disable-external \
--check-html \
--empty_alt_ignore \
--allow_hash_href \
--url_ignore $SAFE_DOMAIN
bash tools/build.sh
bash tools/test.sh
fi