-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathRakefile
36 lines (32 loc) · 1.12 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
28
29
30
31
32
33
34
35
36
require "html-proofer"
task :build do
jekyll_env = ENV.fetch("JEKYLL_ENV", "production")
puts "Running jekyll build with JEKYLL_ENV=#{jekyll_env}"
sh "JEKYLL_ENV=#{jekyll_env} bundle exec jekyll build"
end
task :serve do
puts "Serving jekyll build with live reload at http://127.0.0.1:4000"
sh "jekyll serve -l --baseurl ''"
end
task :test do
options = {
internal_domains: [
"developers.shipcloud.io"
],
typhoeus: {
ssl_verifypeer: false,
headers: {
"User-Agent" => "Mozilla/5.0 (compatible; developers.shipcloud.io htmlproofer) Chrome/87.0.4280.88"
}
},
url_ignore: [
"https://requestbin.com",
"https://www.ups.com/media/de/service_guide_de_preview.pdf",
"https://www.dhl.de/en/paket/information/geschaeftskunden/service-wunschzeit.html",
"https://us7.campaign-archive.com/home/?u=61172dea8790607c71d26bb86&id=4319f24b6f",
"http://john-sheehan.com/blog/ultimate-api-webhook-backend-service-debugging-testing-monitoring-and-discovery-tools-list",
]
}
HTMLProofer.check_directory("./_site", options).run
end
task default: [:build, :serve]