From df1ddc1d0b65b51699edc8764156309cd03fe2b7 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 23 Dec 2019 20:16:25 +0800 Subject: [PATCH] Updated Travis config. --- .travis.yml | 1 + _scripts/travis/cibuild.sh | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index fef41c7..195dcaf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ before_install: install: - pip install --upgrade pip - pip install ruamel.yaml + - bundle install --path vendor/bundle --quiet addons: apt: diff --git a/_scripts/travis/cibuild.sh b/_scripts/travis/cibuild.sh index 1edda8b..1163bde 100644 --- a/_scripts/travis/cibuild.sh +++ b/_scripts/travis/cibuild.sh @@ -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