From 8362026a33c98aa73ddbb9f330b91bb5327e29e3 Mon Sep 17 00:00:00 2001 From: Jeroen van Baarsen Date: Sat, 12 Apr 2014 10:56:37 +0200 Subject: Split feature tests out to different build job --- lib/tasks/spec.rake | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lib/tasks') diff --git a/lib/tasks/spec.rake b/lib/tasks/spec.rake index b760a607f7e..49fbe1bd47a 100644 --- a/lib/tasks/spec.rake +++ b/lib/tasks/spec.rake @@ -1,7 +1,7 @@ Rake::Task["spec"].clear if Rake::Task.task_defined?('spec') namespace :spec do - desc 'GITLAB | Run feature specs' + desc 'GITLAB | Run request specs' task :api do cmds = [ %W(rake gitlab:setup), @@ -10,11 +10,20 @@ namespace :spec do run_commands(cmds) end + desc 'GITLAB | Run feature specs' + task :feature do + cmds = [ + %W(rake gitlab:setup), + %W(rspec spec --tag @feature) + ] + run_commands(cmds) + end + desc 'GITLAB | Run other specs' task :other do cmds = [ %W(rake gitlab:setup), - %W(rspec spec --tag ~@api) + %W(rspec spec --tag ~@api --tag ~@feature) ] run_commands(cmds) end -- cgit v1.2.1