forked from IIIF/api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (29 loc) · 841 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
spec = Gem::Specification.find_by_name 'iiifc-theme'
Dir.glob("#{spec.gem_dir}/lib/tasks/*.rake").each { |r| load r }
# configure default task
task ci: 'api:ci'
task default: :ci
namespace :api do
desc 'run spec tests'
task :spec do
if File.file? './.rspec'
`bundle exec rspec`
else
puts "Skipping rspec tests (no `./.rspec` file found)"
end
`python scripts/check_json.py -v`
end
desc 'Run the site locally on localhost:4000'
task :dev do
sh 'bundle exec jekyll clean'
sh 'bundle exec jekyll serve --watch --drafts'
end
desc 'Build CI site, run html-proofer and spec tests'
task :ci do
Rake::Task['build:ci'].invoke
Rake::Task['test:html'].invoke
Rake::Task['test:links:internal'].invoke
Rake::Task['test:links:iiif'].invoke
Rake::Task['api:spec'].invoke
end
end