-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (24 loc) · 652 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'html/proofer'
task :default => [:verify, :test]
task :verify do
ruby "./verify.rb"
end
task :test do
begin
sh 'bundle exec jekyll build --drafts'
HTML::Proofer.new('./_site',
:parallel => { :in_threads => 8 },
:followlocation => true,
# Some certificates need this to pass
:ssl_verifypeer => false,
# Ignore 302 errors and 503's. Some sites use Cloudflare for DDOS
# protection and this causes 503's.
:only_4xx => true,
# For when we are feeling risky
#validate_html => true,
).run
rescue => e
# Don't fail the build, just output errors
puts e
end
end