Skip to content

Commit

Permalink
Cache external link checks (ethereum#1164)
Browse files Browse the repository at this point in the history
* Cache external link checks

* Cache the external checking results

* Bump the build, add sushi

* Bump build, remove sushi

* Fix SSL errors
  • Loading branch information
fulldecent authored and Arachnid committed Jun 24, 2018
1 parent 8f73e7e commit 972b213
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis-ci.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e # halt script on error

HTMLPROOFER_OPTIONS="./_site --internal-domains=eips.ethereum.org --check-html --check-opengraph --report-missing-names --log-level=:debug --assume-extension --empty-alt-ignore --url-ignore=/EIPS/eip-1,EIPS/eip-1,/EIPS/eip-107,/EIPS/eip-858"
HTMLPROOFER_OPTIONS="./_site --internal-domains=eips.ethereum.org --check-html --check-opengraph --report-missing-names --log-level=:debug --assume-extension --empty-alt-ignore --timeframe=6w --url-ignore=/EIPS/eip-1,EIPS/eip-1,/EIPS/eip-107,/EIPS/eip-858"

if [[ $TASK = 'htmlproofer' ]]; then
bundle exec jekyll doctor
Expand Down
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ sudo: false # route your build to the container-based infrastructure for a faste

language: ruby

# Cache Ruby bundles
cache: bundler
cache:
# Cache Ruby bundles
- bundler
- directories:
- $TRAVIS_BUILD_DIR/tmp/.htmlproofer #https://github.com/gjtorikian/html-proofer/issues/381


# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
Expand Down Expand Up @@ -31,3 +35,8 @@ notifications:
urls:
- https://ethlab-183014.appspot.com/merge/
on_success: always

addons:
apt:
packages:
"libcurl4-openssl-dev" # https://github.com/gjtorikian/html-proofer/issues/376#issuecomment-332767999

0 comments on commit 972b213

Please sign in to comment.