summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-29 23:36:44 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-29 23:36:44 +0300
commite48c6fab60d57b4af31f5b5d3e81ba09e4e68881 (patch)
tree3e7bc1bf2a11f220695765b91936c69e050ac39b /lib
parent267e8c73f2533942b7d112f1b827131fd4bbad72 (diff)
downloadgitlab-ce-e48c6fab60d57b4af31f5b5d3e81ba09e4e68881.tar.gz
Make rake gitlab:test works
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/test.rake19
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