-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis-ci.sh
27 lines (23 loc) · 981 Bytes
/
.travis-ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e # halt script on error
HTMLPROOFER_OPTIONS="./_site --internal-domains=wips.WisedomChainGroup.org --check-html --check-opengraph --report-missing-names --log-level=:debug --assume-extension --empty-alt-ignore --timeframe=6w --url-ignore=/WIPs/wip-1,WIPs/wip-1"
if [[ $TASK = 'htmlproofer' ]]; then
bundle exec jekyll doctor
bundle exec jekyll build
bundle exec htmlproofer $HTMLPROOFER_OPTIONS --disable-external
# Validate GH Pages DNS setup
bundle exec github-pages health-check
elif [[ $TASK = 'htmlproofer-external' ]]; then
bundle exec jekyll doctor
bundle exec jekyll build
bundle exec htmlproofer $HTMLPROOFER_OPTIONS --external_only
elif [[ $TASK = 'eip-validator' ]]; then
BAD_FILES="$(ls WIPS | egrep -v "wip-[0-9]+.md")" || true
if [[ ! -z $BAD_FILES ]]; then
echo "Files found with invalid names:"
echo $BAD_FILES
exit 1
fi
FILES="$(ls WIPS/*.md | egrep "wip-[0-9]+.md")"
bundle exec eip_validator $FILES
fi