-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
46 lines (39 loc) · 1.04 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
37
38
39
40
41
42
43
44
45
46
# frozen_string_literal: true
require 'html-proofer'
require 'jekyll'
require 'rubocop/rake_task'
require 'rspec/core/rake_task'
require 'webdrivers'
load 'webdrivers/Rakefile'
task default: %w[proof spec rubocop alpha]
desc 'jekyll build'
task :build do
config = Jekyll.configuration(
'source' => './',
'destination' => './_site'
)
site = Jekyll::Site.new(config)
Jekyll::Commands::Build.build site, config
end
desc 'html proofer'
task proof: 'build' do
HTMLProofer.check_directory(
'./_site', \
assume_extension: true, \
check_html: true, \
internal_domains: ['www.stephengroat.com'], \
url_ignore: [%r{paypal.me/},
%r{www.linkedin.com/in},
%r{scholar.google.com/citations?user=},
%r{twitter.com/stephengroat},
/angel.co/,
/vt.academia.edu/]
).run
end
desc 'alphabetize brewfile'
task :alpha do
file = File.readlines('files/.Brewfile')
raise if file != file.sort
end
RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new