summaryrefslogtreecommitdiff
path: root/lib/tasks/spinach.rake
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-23 15:17:11 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-23 15:17:11 +0000
commitb902a9b83d71738c8b5fc0c1c461119e56100b07 (patch)
tree0e92793ca2ef7eea73dce5f7fdc7427d6a54d608 /lib/tasks/spinach.rake
parent541f7675f9a72a7156811ccc6cd58171b7583934 (diff)
parentb8f12d1917d2befe17cf8e8f47fb70a1bb6a99ff (diff)
downloadgitlab-ce-b902a9b83d71738c8b5fc0c1c461119e56100b07.tar.gz
Merge branch 'split-tests' into 'master'
Split rspec and spinach tests in parallel For https://dev.gitlab.org/gitlab/gitlabhq/issues/2386 See merge request !874
Diffstat (limited to 'lib/tasks/spinach.rake')
-rw-r--r--lib/tasks/spinach.rake44
1 files changed, 20 insertions, 24 deletions
diff --git a/lib/tasks/spinach.rake b/lib/tasks/spinach.rake
index 4aefc18ce14..c8881be0954 100644
--- a/lib/tasks/spinach.rake
+++ b/lib/tasks/spinach.rake
@@ -1,34 +1,30 @@
Rake::Task["spinach"].clear if Rake::Task.task_defined?('spinach')
-desc "GITLAB | Run spinach"
-task :spinach do
- tags = if ENV['SEMAPHORE']
- '~@tricky'
- else
- '~@semaphore'
- end
-
- cmds = [
- %W(rake gitlab:setup),
- %W(spinach --tags #{tags}),
- ]
- run_commands(cmds)
-end
+namespace :spinach do
+ desc "GitLab | Spinach | Run project spinach features"
+ task :project do
+ cmds = [
+ %W(rake gitlab:setup),
+ %W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets),
+ ]
+ run_commands(cmds)
+ end
-desc "GITLAB | Run project spinach features"
-task :spinach_project do
- cmds = [
- %W(rake gitlab:setup),
- %W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets),
- ]
- run_commands(cmds)
+ desc "GitLab | Spinach | Run other spinach features"
+ task :other do
+ cmds = [
+ %W(rake gitlab:setup),
+ %W(spinach --tags @admin,@dashboard,@profile,@public,@snippets),
+ ]
+ run_commands(cmds)
+ end
end
-desc "GITLAB | Run other spinach features"
-task :spinach_other do
+desc "GitLab | Run spinach"
+task :spinach do
cmds = [
%W(rake gitlab:setup),
- %W(spinach --tags @admin,@dashboard,@profile,@public,@snippets),
+ %W(spinach),
]
run_commands(cmds)
end