forked from hackercouch/hackercouch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
40 lines (37 loc) · 859 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
32
33
34
35
36
37
38
39
40
abort('Please run this using `bundle exec rake`') unless ENV["BUNDLE_BIN_PATH"]
require 'html-proofer'
desc "Run HTMLProofer"
task :test do
options = {
:ignore_urls => [
/mikaelkorpela/,
/hitchwiki/,
/steemit/
],
:enforce_https => false,
:cache => {
:timeframe => { :internal => '7d' }
},
:typhoeus => {
:headers => {
"User-Agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
},
:followlocation => true,
:connecttimeout => 5,
:timeout => 15
},
hydra: {
:max_concurrency => 3
},
:parallel => {
:in_processes => 3
}
}
begin
HTMLProofer.check_directory("_site", options).run
rescue => msg
puts "#{msg}"
exit 1
end
end
task :default => [:test]