Commit e48c6fab60d57b4af31f5b5d3e81ba09e4e68881
1 parent
267e8c73
Exists in
master
and in
4 other branches
Make rake gitlab:test works
Showing
2 changed files
with
15 additions
and
6 deletions
Show diff stats
lib/tasks/gitlab/test.rake
1 | 1 | namespace :gitlab do |
2 | 2 | desc "GITLAB | Run all tests" |
3 | 3 | task :test do |
4 | - Rails.env = "test" | |
5 | - Rake::Task["db:setup"].invoke | |
6 | - Rake::Task["db:seed_fu"].invoke | |
7 | - Rake::Task["spinach"].invoke | |
8 | - Rake::Task["spec"].invoke | |
9 | - Rake::Task["jasmince:ci"].invoke | |
4 | + cmds = [ | |
5 | + "rake db:setup", | |
6 | + "rake db:seed_fu", | |
7 | + "rake spinach", | |
8 | + "rake spec", | |
9 | + "rake jasmine:ci" | |
10 | + ] | |
11 | + | |
12 | + cmds.each do |cmd| | |
13 | + system(cmd + " RAILS_ENV=test") | |
14 | + | |
15 | + raise "#{cmd} failed!" unless $?.exitstatus.zero? | |
16 | + end | |
10 | 17 | end |
11 | 18 | end | ... | ... |
spec/javascripts/support/jasmine_helper.rb