Improve rake test tasks

* Rename `no_sshd' as `ci';
* Configure a quiet profile for cucumber;
* Workaround travis CI scrolling bugs with quiet output.
This commit is contained in:
Thibault Jouan 2015-05-12 18:46:48 +00:00
parent 66146fa2e2
commit 93878ebb6b
2 changed files with 7 additions and 3 deletions

View File

@ -5,12 +5,15 @@ task default: %i[features spec]
Cucumber::Rake::Task.new(:features)
Cucumber::Rake::Task.new(:features_no_sshd) do |t|
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(:spec)
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_no_sshd spec]
task ci: %i[features_ci spec]

View File

@ -1 +1,2 @@
default: --require features/support --require features/steps --no-source
quiet: --format progress