-
Notifications
You must be signed in to change notification settings - Fork 46
/
Rakefile
27 lines (25 loc) · 1.08 KB
/
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
require 'html-proofer'
task :test do
sh "bundle exec jekyll build"
options = { :assume_extension => true,
:empty_alt_ignore => true,
:url_ignore => [/feed.xml/, "#", /teams.fhcrc.org/,
/toolbox.fhcrc.org/, /galaxy.fredhutch.org/,
/rstudio.fhcrc.org/, /jupyterhub.fhcrc.org/,
/aspera.fhcrc.org/, /mydb.fredhutch.org/,
/translationalgenomics.fredhutch.org/,
/lists.fhcrc.org/, /slack.com/,
/ontology.fredhutch.org/, /biocontainers.pro/,
/hutchbase.fhcrc.org/, /batch-dashboard.fhcrc.org/],
:typhoeus => {:connecttimeout => 60, :timeout => 120}}
HTMLProofer.check_directory("./_site", options).run
end
task :testlocal do
sh "bundle exec jekyll build"
options = { :assume_extension => true,
:empty_alt_ignore => true,
# still excluding internal URLs that require authentication
:url_ignore => [/teams.fhcrc.org/, /feed.xml/, "#", /slack.com/,
/sw2srv/]}
HTMLProofer.check_directory("./_site", options).run
end