-
Notifications
You must be signed in to change notification settings - Fork 35
/
Rakefile
44 lines (40 loc) · 1.26 KB
/
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
38
39
40
41
42
43
44
# -*- encoding: utf-8 -*-
require 'rubygems'
require 'bundler'
Bundler::GemHelper.install_tasks
require 'colored'
require 'rake'
require 'rdoc/task'
require 'rake/testtask'
require 'rspec/core/rake_task'
namespace :spec do
desc "Run the unit specs"
RSpec::Core::RakeTask.new(:units) do |t|
t.pattern = "./spec/lib/**/*_spec.rb"
end
end
task :test do
puts
puts "To run integration specs:"
puts " $ script/for_all_test_apps bundle exec rake"
puts
puts "To run integration specs in a Ruby 2.0 environment:"
puts " $ RUBY_COMPATIBILITY=2.0 script/for_all_test_apps bundle exec rake"
puts
puts "To run integration specs in a Ruby 2.1 environment:"
puts " $ RUBY_COMPATIBILITY=2.1 script/for_all_test_apps bundle exec rake"
puts
puts "To run integration specs in a Ruby 2.2 environment:"
puts " $ RUBY_COMPATIBILITY=2.2 script/for_all_test_apps bundle exec rake"
puts
puts "To run integration specs in a Ruby 2.3 environment:"
puts " $ RUBY_COMPATIBILITY=2.3 script/for_all_test_apps bundle exec rake"
puts
puts "To run unit specs:"
puts " $ bundle exec rake spec:units"
puts
puts "You may need to run this first before the integration specs will pass:"
puts " $ script/for_all_test_apps bundle install"
puts
end
task :default => :test