diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-14 10:44:16 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-14 10:44:16 +0200 |
commit | f6f80659ec23ffc7ad4847b13ac78047862f0d91 (patch) | |
tree | 1552546f3e1a62187a9f245507e6de1076a5d15c /lib/tasks/spinach.rake | |
parent | 506709485c8be7a3fb26e4fa6f7d1ea0ad999280 (diff) | |
download | gitlab-ce-f6f80659ec23ffc7ad4847b13ac78047862f0d91.tar.gz |
Override rake spec and rake spinach tasks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks/spinach.rake')
-rw-r--r-- | lib/tasks/spinach.rake | 14 |
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..60d4d6343b7 --- /dev/null +++ b/lib/tasks/spinach.rake @@ -0,0 +1,14 @@ +Rake::Task["spinach"].clear + +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 |