File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,8 @@ source 'https://rubygems.org'
44gem 'jekyll' , '~> 4.2.1'
55gem 'jekyll-redirect-from'
66
7+ # html-proofer checks for broken links.
8+ # used in docker-compose.yml test job
9+ gem 'html-proofer'
10+
711gem "webrick" , "~> 1.7"
Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ services:
4040
4141 test :
4242 << : *common
43- command : /bin/bash -cl "
44- bundle check
45- && bundle exec jekyll doctor --source /srv/jekyll --destination /output
46- && bundle exec jekyll build --source /srv/jekyll --destination /output"
43+ command : /bin/bash -cl "/code/scripts/test.sh"
44+ volumes :
45+ - .:/srv/jekyll:cached
46+ - ./.output:/output:z
47+ - .:/code:z
4748
4849 website :
4950 << : *common
Original file line number Diff line number Diff line change 1+ set -eu
2+ here=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
3+ cd " $here /.."
4+
5+ bundle check
6+ bundle exec jekyll doctor --source /srv/jekyll --destination /output
7+ bundle exec jekyll build --source /srv/jekyll --destination /output
8+
9+ # This line runs broken link checks: https://github.com/gjtorikian/html-proofer
10+ bundle exec htmlproofer \
11+ --ignore-status-codes " 429" \
12+ --only_4xx \
13+ --ignore-urls twitter.com \
14+ /output
You can’t perform that action at this time.
0 commit comments