forked from kachick/keyvalidatable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (25 loc) · 669 Bytes
/
Copy pathRakefile
File metadata and controls
34 lines (25 loc) · 669 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
33
34
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rake/testtask'
begin
require 'rubocop/rake_task'
rescue LoadError
puts 'can not use rubocop in this environment'
else
RuboCop::RakeTask.new
end
task default: [:test_behaviors]
task test_behaviors: [:test]
multitask simulate_ci: [:test_behaviors, :validate_signatures, :rubocop]
Rake::TestTask.new(:test) do |tt|
tt.pattern = 'test/**/test_*.rb'
tt.verbose = true
tt.warning = true
end
task validate_signatures: [:test_yard]
task :test_yard do
sh "bundle exec yard --fail-on-warning #{'--no-progress' if ENV['CI']}"
end
task :yard do
sh 'bundle exec yard --fail-on-warning'
end