Updated Travis config.

This commit is contained in:
Cotes Chung 2019-12-23 20:16:25 +08:00
parent d5f2895047
commit df1ddc1d0b
2 changed files with 6 additions and 7 deletions

View file

@ -7,6 +7,7 @@ before_install:
install:
- pip install --upgrade pip
- pip install ruamel.yaml
- bundle install --path vendor/bundle --quiet
addons:
apt:

View file

@ -17,22 +17,20 @@ if [[ $TRAVIS_PULL_REQUEST = "false" ]]; then # triggered by author
else # triggered by Pull Request
SAFE_DOMAIN=cdn.jsdelivr.net
bundle install --path vendor/bundle --quiet
SAFE_DOMAIN="cdn.jsdelivr.net"
python _scripts/py/init_all.py
build_cmd="JEKYLL_ENV=production bundle exec jekyll build"
build_cmd="bundle exec jekyll build"
echo "\$ $build_cmd"
eval $build_cmd
bundle exec htmlproofer --disable-external \
bundle exec htmlproofer _site/ \
--disable-external \
--check-html \
--empty_alt_ignore \
--allow_hash_href \
--url_ignore $SAFE_DOMAIN \
_site/
--url_ignore $SAFE_DOMAIN
fi