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:
parent
66146fa2e2
commit
93878ebb6b
9
Rakefile
9
Rakefile
@ -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]
|
||||
|
@ -1 +1,2 @@
|
||||
default: --require features/support --require features/steps --no-source
|
||||
quiet: --format progress
|
||||
|
Loading…
x
Reference in New Issue
Block a user