Commit b0a86cb3ba649ea959d05a972f6cd1d6798f86c9

Authored by Dmitriy Zaporozhets
1 parent 46cc3b22

Use gitlab:setup inside gitlab:test

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
lib/tasks/gitlab/test.rake
@@ -2,15 +2,14 @@ namespace :gitlab do @@ -2,15 +2,14 @@ namespace :gitlab do
2 desc "GITLAB | Run all tests" 2 desc "GITLAB | Run all tests"
3 task :test do 3 task :test do
4 cmds = [ 4 cmds = [
5 - %W(rake db:setup),  
6 - %W(rake db:seed_fu), 5 + %W(rake gitlab:setup),
7 %W(rake spinach), 6 %W(rake spinach),
8 %W(rake spec), 7 %W(rake spec),
9 %W(rake jasmine:ci) 8 %W(rake jasmine:ci)
10 ] 9 ]
11 10
12 cmds.each do |cmd| 11 cmds.each do |cmd|
13 - system({'RAILS_ENV' => 'test'}, *cmd) 12 + system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
14 13
15 raise "#{cmd} failed!" unless $?.exitstatus.zero? 14 raise "#{cmd} failed!" unless $?.exitstatus.zero?
16 end 15 end