producer-core/Rakefile
Thibault Jouan 93878ebb6b Improve rake test tasks
* Rename `no_sshd' as `ci';
* Configure a quiet profile for cucumber;
* Workaround travis CI scrolling bugs with quiet output.
2015-05-12 18:46:48 +00:00

20 lines
468 B
Ruby

require 'cucumber/rake/task'
require 'rspec/core/rake_task'
task default: %i[features spec]
Cucumber::Rake::Task.new(:features)
Cucumber::Rake::Task.new(:features_ci) do |t|
t.instance_eval { @desc << ' excluding @ci_skip' }
t.cucumber_opts = '--tags ~@ci_skip'
t.profile = 'quiet' if ENV.key? 'TRAVIS'
end
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = '--format progress' if ENV.key? 'TRAVIS'
end
desc 'Run CI test suite'
task ci: %i[features_ci spec]