Skip to content

Commit 374e480

Browse files
committed
Extract links check into a separate docker-compose job
1 parent 34500a2 commit 374e480

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docker-compose.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ services:
4040

4141
test:
4242
<<: *common
43-
command: /bin/bash -cl "/code/scripts/test.sh"
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"
47+
48+
check-links:
49+
<<: *common
50+
command: /bin/bash -cl "/code/scripts/check_links.sh"
4451
volumes:
4552
- .:/srv/jekyll:cached
4653
- ./.output:/output:z

scripts/test.sh renamed to scripts/check_links.sh

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
33
cd "$here/.."
44

55
bundle check
6-
bundle exec jekyll doctor --source /srv/jekyll --destination /output
76
bundle exec jekyll build --source /srv/jekyll --destination /output
87

98
# This line runs broken link checks: https://github.com/gjtorikian/html-proofer

0 commit comments

Comments
 (0)