Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/spinach.rake')
-rw-r--r--lib/tasks/spinach.rake14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tasks/spinach.rake b/lib/tasks/spinach.rake
new file mode 100644
index 00000000000..c23d0e0e188
--- /dev/null
+++ b/lib/tasks/spinach.rake
@@ -0,0 +1,14 @@
+Rake::Task["spinach"].clear if Rake::Task.task_defined?('spinach')
+
+desc "GITLAB | Run spinach"
+task :spinach do
+ cmds = [
+ %W(rake gitlab:setup),
+ %W(spinach),
+ ]
+
+ cmds.each do |cmd|
+ system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
+ raise "#{cmd} failed!" unless $?.exitstatus.zero?
+ end
+end