forked from trailblazer/trailblazer-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
30 lines (25 loc) · 795 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
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = "--format documentation --format RspecJunitFormatter --out test-reports/spec.xml"
end
RSpec::Core::RakeTask.new(:tests) do |t|
t.rspec_opts = "--format progress --format documentation"
end
RSpec::Core::RakeTask.new(:spec_report) do |t|
t.rspec_opts = "--format html --out reports/rspec_results.html"
end
RuboCop::RakeTask.new(:rubocop)
desc "Remove temporary files"
task :clean do
%x{rm -rf *.gem doc pkg coverage test-reports}
%x{rm -f `find . -name "*.rbc"`}
end
desc "Build the gem"
task :gem do
%x{gem build trailblazer-generator.gemspec}
end
desc "Running Tests"
#task default: %i[clean spec rubocop]
task default: %i[clean tests]