mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Merge pull request #247 from thoughtbot/mj-rakefile-appraisal
Allow the suite to run sequentially via Appraisal
This commit is contained in:
commit
85d19da45c
1 changed files with 9 additions and 5 deletions
14
Rakefile
14
Rakefile
|
@ -15,10 +15,14 @@ Cucumber::Rake::Task.new do |t|
|
|||
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
|
||||
end
|
||||
|
||||
desc 'Test the plugin under all supported Rails versions.'
|
||||
task :all => ["appraisal:cleanup", "appraisal:install"] do
|
||||
exec('rake appraisal spec cucumber')
|
||||
task :default do |t|
|
||||
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
|
||||
exec 'rake spec cucumber'
|
||||
else
|
||||
Rake::Task['appraise'].execute
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Default: run specs and cucumber features'
|
||||
task :default => [:all]
|
||||
task :appraise => ['appraisal:install'] do |t|
|
||||
exec 'rake appraisal'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue