Skip to content

Commit 6c3ba89

Browse files
dlechWasabiFan
authored andcommitted
Use separate list for IGNORE_HREFS on travis (ev3dev#285)
Travis has issues with https, so we have to ignore quite a few sites. This lets us actually check the sites ignored by travis locally every once in a while while keeping travis green.
1 parent 1aa162b commit 6c3ba89

1 file changed

Lines changed: 26 additions & 14 deletions

File tree

cibuild.sh

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,37 @@ fi
2626
echo "Building site ------------------------------------"
2727
bundle exec jekyll build --trace
2828

29-
# credit: code snippet borrowed from jekyllrb.com website source
30-
IGNORE_HREFS=$(ruby -e 'puts %w{
31-
example.com
32-
https:\/\/github\.com\/myuser\/myrepo
33-
.*revolds-whitepaper\.pdf
34-
https:\/\/github.com\/ev3dev\/ev3dev\.github\.io\/edit\/.*
35-
warmcat.com
36-
robosnap.net
37-
01.org
38-
alldatasheet.com
39-
kernel\.org
40-
}.map{|h| "/#{h}/"}.join(",")')
29+
if [ "$TRAVIS" == "true" ]; then
30+
# Travis has issues with https, so we have to ignore quite a few extra sites
31+
32+
# credit: code snippet borrowed from jekyllrb.com website source
33+
IGNORE_HREFS=$(ruby -e 'puts %w{
34+
example.com
35+
https:\/\/github\.com\/myuser\/myrepo
36+
.*revolds-whitepaper\.pdf
37+
https:\/\/github.com\/ev3dev\/ev3dev\.github\.io\/edit\/.*
38+
robosnap.net
39+
warmcat.com
40+
01.org
41+
alldatasheet.com
42+
kernel\.org
43+
lab\.open-roberta\.org
44+
}.map{|h| "/#{h}/"}.join(",")')
45+
else
46+
# credit: code snippet borrowed from jekyllrb.com website source
47+
IGNORE_HREFS=$(ruby -e 'puts %w{
48+
example.com
49+
https:\/\/github\.com\/myuser\/myrepo
50+
https:\/\/github.com\/ev3dev\/ev3dev\.github\.io\/edit\/.*
51+
robosnap.net
52+
}.map{|h| "/#{h}/"}.join(",")')
53+
fi
4154

4255
# Explanation of ignored sites:
4356
# - example.com and github.com/myuser/myrepo are fake/example links
4457
# - The edit on github pages don't exist when you create a page, so ignoring them.
4558
# They are automatically generated anyway.
46-
# -revolds-whitepaper.pdf causes problems on travis but is really a good link (for now)
47-
# - warmcat.com works locally but fails on travis for some reason related to ssl
59+
# - robosnap.net no longer exists, but keeping the link for historical reasons
4860

4961
echo "Validating HTML ----------------------------------"
5062
# We want to use the publish script so that we can implement other transformations in the future

0 commit comments

Comments
 (0)