diff --git a/Rakefile b/Rakefile index 10699a06..c1d37732 100644 --- a/Rakefile +++ b/Rakefile @@ -11,8 +11,8 @@ options = { :typhoeus => { :ssl_verifyhost => 0 }, - # Because their is authwall - :url_ignore => ["http://linkedin.com/in/sylvainmetayer"] + # Because their is authwall, because HTTP/2 fail nag and because certificate error for eugdpr.org though it seems right + :url_ignore => ["http://linkedin.com/in/sylvainmetayer", "https://ctan.org/pkg/nag", "https://eugdpr.org/"] } task :test do @@ -24,4 +24,4 @@ task :ci do HTMLProofer.check_directory("./_site", options).run end -task :default => [:test] \ No newline at end of file +task :default => [:test] diff --git a/scripts/build_travis.sh b/scripts/build_travis.sh index ed393ead..c51fdd64 100755 --- a/scripts/build_travis.sh +++ b/scripts/build_travis.sh @@ -9,22 +9,22 @@ echo "-----------------------------" echo "Check for vulnerabilities" bundle exec bundle-audit -# echo "-----------------------------" -# echo "Start server to make tests" -# JEKYLL_ENV=production bundle exec jekyll serve --config _config.yml,_config-ci.yml & -# SERVER_PID=$! - -# echo "-----------------------------" -# echo "Wait for server to be ready" -# sleep 10 - -# echo "-----------------------------" -# echo "Run tests" -# bundle exec rake ci - -# echo "-----------------------------" -# echo "Tests OK, kill server" -# kill -9 $SERVER_PID +echo "-----------------------------" +echo "Start server to make tests" +JEKYLL_ENV=production bundle exec jekyll serve --config _config.yml,_config-ci.yml & +SERVER_PID=$! + +echo "-----------------------------" +echo "Wait for server to be ready" +sleep 10 + +echo "-----------------------------" +echo "Run tests" +bundle exec rake ci + +echo "-----------------------------" +echo "Tests OK, kill server" +kill -9 $SERVER_PID echo "-----------------------------" echo "Cleanup"