File tree 3 files changed +23
-4
lines changed
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'
4
4
gem 'jekyll' , '~> 4.2.1'
5
5
gem 'jekyll-redirect-from'
6
6
7
+ # html-proofer checks for broken links.
8
+ # used in docker-compose.yml test job
9
+ gem 'html-proofer'
10
+
7
11
gem "webrick" , "~> 1.7"
Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ services:
40
40
41
41
test :
42
42
<< : *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
47
48
48
49
website :
49
50
<< : *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