Updated Travis config.
This commit is contained in:
parent
d5f2895047
commit
df1ddc1d0b
2 changed files with 6 additions and 7 deletions
|
@ -7,6 +7,7 @@ before_install:
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install ruamel.yaml
|
- pip install ruamel.yaml
|
||||||
|
- bundle install --path vendor/bundle --quiet
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
|
|
@ -17,22 +17,20 @@ if [[ $TRAVIS_PULL_REQUEST = "false" ]]; then # triggered by author
|
||||||
|
|
||||||
else # triggered by Pull Request
|
else # triggered by Pull Request
|
||||||
|
|
||||||
SAFE_DOMAIN=cdn.jsdelivr.net
|
SAFE_DOMAIN="cdn.jsdelivr.net"
|
||||||
|
|
||||||
bundle install --path vendor/bundle --quiet
|
|
||||||
|
|
||||||
python _scripts/py/init_all.py
|
python _scripts/py/init_all.py
|
||||||
|
|
||||||
build_cmd="JEKYLL_ENV=production bundle exec jekyll build"
|
build_cmd="bundle exec jekyll build"
|
||||||
|
|
||||||
echo "\$ $build_cmd"
|
echo "\$ $build_cmd"
|
||||||
eval $build_cmd
|
eval $build_cmd
|
||||||
|
|
||||||
bundle exec htmlproofer --disable-external \
|
bundle exec htmlproofer _site/ \
|
||||||
|
--disable-external \
|
||||||
--check-html \
|
--check-html \
|
||||||
--empty_alt_ignore \
|
--empty_alt_ignore \
|
||||||
--allow_hash_href \
|
--allow_hash_href \
|
||||||
--url_ignore $SAFE_DOMAIN \
|
--url_ignore $SAFE_DOMAIN
|
||||||
_site/
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue