File: Rakefile

package info (click to toggle)
ruby-factory-girl-rails 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 184 kB
  • ctags: 51
  • sloc: ruby: 258; sh: 4; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'cucumber/rake/task'

Cucumber::Rake::Task.new(:cucumber) do |t|
  t.fork = true
  t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end

require 'appraisal'

desc 'Run the test suite'
task :default do |t|
  if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
    exec 'rake cucumber'
  else
    Rake::Task['appraise'].execute
  end
end

task :appraise => ['appraisal:install'] do |t|
  exec 'rake appraisal'
end