From 9f091b7d92438301c70d6c72c7814340eef79c52 Mon Sep 17 00:00:00 2001 From: Yasuhito Takamiya Date: Thu, 19 Mar 2015 18:26:10 +0900 Subject: [PATCH] Ignore @sudo and @shell scenarios on Travis. --- cucumber.rake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cucumber.rake b/cucumber.rake index 5b03d23..3c7b369 100644 --- a/cucumber.rake +++ b/cucumber.rake @@ -1,10 +1,14 @@ begin require 'cucumber/rake/task' - Cucumber::Rake::Task.new do |t| - t.cucumber_opts = '--tags ~@wip' + Cucumber::Rake::Task.new + Cucumber::Rake::Task.new('cucumber:travis') do |task| + task.cucumber_opts = '--tags ~@wip --tags ~@sudo --tags ~@shell' end rescue LoadError task :cucumber do $stderr.puts 'Cucumber is disabled' end + task 'cucumber:travis' do + $stderr.puts 'Cucumber is disabled' + end end