|
26 | 26 | echo "Building site ------------------------------------" |
27 | 27 | bundle exec jekyll build --trace |
28 | 28 |
|
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 |
41 | 54 |
|
42 | 55 | # Explanation of ignored sites: |
43 | 56 | # - example.com and github.com/myuser/myrepo are fake/example links |
44 | 57 | # - The edit on github pages don't exist when you create a page, so ignoring them. |
45 | 58 | # 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 |
48 | 60 |
|
49 | 61 | echo "Validating HTML ----------------------------------" |
50 | 62 | # We want to use the publish script so that we can implement other transformations in the future |
|
0 commit comments