forked from puppetlabs/vanagon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
32 lines (26 loc) · 726 Bytes
/
Rakefile
File metadata and controls
32 lines (26 loc) · 726 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 'bundler/setup'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yard'
desc 'Test Vanagon'
namespace :test do
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |task|
task.rspec_opts = %(--format documentation --color --require spec_helper)
end
desc 'Test Vanagon and calculate test coverage'
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['test:spec'].invoke
end
end
desc 'Run RuboCop'
RuboCop::RakeTask.new(:rubocop) do |task|
task.options << '--display-cop-names'
end
desc 'Generate doc using Yard'
YARD::Rake::YardocTask.new
desc 'Run all spec tests and linters'
task check: %w[test:spec rubocop]
task default: :check