Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainmetayer committed Aug 12, 2019
1 parent 5b3ca95 commit dfe5aa5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,4 +24,4 @@ task :ci do
HTMLProofer.check_directory("./_site", options).run
end

task :default => [:test]
task :default => [:test]
32 changes: 16 additions & 16 deletions scripts/build_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dfe5aa5

Please sign in to comment.