Skip to content

Commit 1cb00db

Browse files
authored
Fix sonarqube SSL Connection Errors on travis
travis seems to have a problem with some webpages, i still dont know the real cause but this fixed it on my fork. sauce: ev3dev/ev3dev.github.io#278 https://github.com/dlech/ev3dev.github.io/blob/bb7f97b3505adc1a52c21a14c4f74820ab4d36c0/cibuild.sh fixes iluwatar#522
1 parent bb74c7e commit 1cb00db

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cibuild.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ git log --pretty=format:'%H' -n 1 >> _config.yml
1414

1515
bundle exec jekyll build
1616

17-
# - ignore everything below every webapp directory, so we dont mess with the source code
17+
# credit: code snippet borrowed from jekyllrb.com website source
18+
IGNORE_HREFS=$(ruby -e 'puts %w{
19+
example\.com.*
20+
https:\/\/github.com\/iluwatar\/java-design-patterns\/fork
21+
https:\/\/sonarqube.com.*
22+
}.map{|h| "/#{h}/"}.join(",")')
23+
# - ignore example.com because they are just examples/fakes
1824
# - ignore the fork link of our project, because it somehow is not valid (https://validator.w3.org/)
25+
# - ignore sonarqube.com/api/badges/gate because of travis-only 'SSL Connect Error's
26+
27+
# - ignore everything below every webapp directory, so we dont mess with the source code
1928
# - ignore the folder principles of the external dependency (git submodule) webpro/programming-principles
20-
bundle exec htmlproofer ./_site/ --file-ignore "/.+\/(webapp|principles)\/.*/" --url-ignore "https://github.com/iluwatar/java-design-patterns/fork"
29+
bundle exec htmlproofer ./_site/ --file-ignore "/.+\/(webapp|principles)\/.*/" --url-ignore $IGNORE_HREFS --check-html --allow-hash-href

0 commit comments

Comments
 (0)