-
Notifications
You must be signed in to change notification settings - Fork 20
/
Rakefile
37 lines (28 loc) · 858 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
34
35
36
37
require 'rubygems'
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
namespace :spec do
RSPEC_OPTS = ["--format", "nested", "--format", "html", "--out", "spec_result.html", "--colour"]
RSpec::Core::RakeTask.new(:file) do |t|
t.rspec_opts = RSPEC_OPTS
t.pattern = ENV['SPEC_FILE']
end
RSpec::Core::RakeTask.new(:unit) do |t|
t.rspec_opts = RSPEC_OPTS
t.pattern = 'spec/unit/**/*_spec.rb'
end
RSpec::Core::RakeTask.new(:functional) do |t|
t.rspec_opts = RSPEC_OPTS
t.pattern = 'spec/functional/**/*_spec.rb'
end
RSpec::Core::RakeTask.new(:aws_call_count) do |t|
t.rspec_opts = RSPEC_OPTS
t.pattern = 'spec/aws_call_count/**/*_spec.rb'
end
task :all => [:unit, :functional, :aws_call_count]
end
task :default => 'spec:all'
task :clean do
system "rm -rf pkg/*"
end