diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-29 23:36:44 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-29 23:36:44 +0300 |
commit | e48c6fab60d57b4af31f5b5d3e81ba09e4e68881 (patch) | |
tree | 3e7bc1bf2a11f220695765b91936c69e050ac39b /lib | |
parent | 267e8c73f2533942b7d112f1b827131fd4bbad72 (diff) | |
download | gitlab-ce-e48c6fab60d57b4af31f5b5d3e81ba09e4e68881.tar.gz |
Make rake gitlab:test works
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/test.rake | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/tasks/gitlab/test.rake b/lib/tasks/gitlab/test.rake index 38fa8b1a208..011748c9711 100644 --- a/lib/tasks/gitlab/test.rake +++ b/lib/tasks/gitlab/test.rake @@ -1,11 +1,18 @@ namespace :gitlab do desc "GITLAB | Run all tests" task :test do - Rails.env = "test" - Rake::Task["db:setup"].invoke - Rake::Task["db:seed_fu"].invoke - Rake::Task["spinach"].invoke - Rake::Task["spec"].invoke - Rake::Task["jasmince:ci"].invoke + cmds = [ + "rake db:setup", + "rake db:seed_fu", + "rake spinach", + "rake spec", + "rake jasmine:ci" + ] + + cmds.each do |cmd| + system(cmd + " RAILS_ENV=test") + + raise "#{cmd} failed!" unless $?.exitstatus.zero? + end end end |