forked from Homebrew/brew.sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
32 lines (29 loc) · 891 Bytes
/
Rakefile
File metadata and controls
32 lines (29 loc) · 891 Bytes
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
require "rake"
task default: :build
desc "Build the site."
task :build do
sh "bundle exec jekyll build"
end
desc "Run html proofer to validate the HTML output."
task test: :build do
require "html-proofer"
HTMLProofer.check_directory(
"./_site",
parallel: { in_threads: 4 },
ignore_status_codes: [0, 302, 303, 429, 521],
check_external_hash: true,
checks: ['Links', 'Images', 'Scripts', 'Favicon', 'OpenGraph'],
allow_missing_href: true,
ignore_urls: [
"https://formulae.brew.sh/",
"https://github.com/search",
"https://hackerone.com/homebrew",
"https://www.patreon.com/homebrew",
%r{^https?://twitter\.com/},
%r{https://github.com/Homebrew/homebrew-science(?:/.+)?},
%r{https://github.com/Homebrew/brew/.+},
"https://github.com/mrtnpwn",
"https://github.com/homebrew/homebrew-php",
]
).run
end