From ac065e1706a676deba74104b972d53f6e9d65999 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 5 Nov 2011 21:09:56 -0700 Subject: [PATCH] Differentiate between oauth features and non-oauth features for travis. --- features/oauth.feature | 2 +- lib/tasks/ci.rake | 2 +- lib/tasks/cucumber.rake | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/oauth.feature b/features/oauth.feature index 754dc0ab6..12adecd2b 100644 --- a/features/oauth.feature +++ b/features/oauth.feature @@ -1,4 +1,4 @@ -@javascript @no-ci +@javascript @oauth-group Feature: oauth Exchanging oauth credentials diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 956b74daa..dc7d93ca4 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -8,7 +8,7 @@ namespace :ci do raise "Cucumber failed!" unless $?.exitstatus == 0 elsif ENV['BUILD_TYPE'] == 'oauth-cucumber' puts "Running oauth cucumber features..." - system("export DISPLAY=:99.0 && CI=true bundle exec rake cucumber") + system("export DISPLAY=:99.0 && GROUP=oauth bundle exec rake cucumber") raise "OAuth cucumber failed!" unless $?.exitstatus == 0 else ["rspec spec", "rake jasmine:ci"].each do |cmd| diff --git a/lib/tasks/cucumber.rake b/lib/tasks/cucumber.rake index 450dac4f0..0f7829077 100644 --- a/lib/tasks/cucumber.rake +++ b/lib/tasks/cucumber.rake @@ -19,8 +19,8 @@ begin t.fork = true # You may get faster startup if you set this to false t.profile = 'default' cucumber_opts = "" - cucumber_opts << " -f pretty" unless ENV["CI"] || ENV["TRAVIS"] - cucumber_opts << " --tags ~@no-ci" if ENV["CI"] || ENV["TRAVIS"] + cucumber_opts << " -f pretty" unless ENV["TRAVIS"] + cucumber_opts << ((ENV["GROUP"] == "oauth") ? " --tags @oauth-group" : " --tags ~@oauth-group") t.cucumber_opts = cucumber_opts end