Skip to content

Commit

Permalink
Fix sonarqube SSL Connection Errors on travis
Browse files Browse the repository at this point in the history
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 #522
  • Loading branch information
markusmo3 authored Nov 21, 2016
1 parent bb74c7e commit 1cb00db
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ git log --pretty=format:'%H' -n 1 >> _config.yml

bundle exec jekyll build

# - ignore everything below every webapp directory, so we dont mess with the source code
# credit: code snippet borrowed from jekyllrb.com website source
IGNORE_HREFS=$(ruby -e 'puts %w{
example\.com.*
https:\/\/github.com\/iluwatar\/java-design-patterns\/fork
https:\/\/sonarqube.com.*
}.map{|h| "/#{h}/"}.join(",")')
# - ignore example.com because they are just examples/fakes
# - ignore the fork link of our project, because it somehow is not valid (https://validator.w3.org/)
# - ignore sonarqube.com/api/badges/gate because of travis-only 'SSL Connect Error's

# - ignore everything below every webapp directory, so we dont mess with the source code
# - ignore the folder principles of the external dependency (git submodule) webpro/programming-principles
bundle exec htmlproofer ./_site/ --file-ignore "/.+\/(webapp|principles)\/.*/" --url-ignore "https://github.com/iluwatar/java-design-patterns/fork"
bundle exec htmlproofer ./_site/ --file-ignore "/.+\/(webapp|principles)\/.*/" --url-ignore $IGNORE_HREFS --check-html --allow-hash-href

0 comments on commit 1cb00db

Please sign in to comment.