Use gitlab:setup inside gitlab:test

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-03-13 11:33:33 +02:00
parent 46cc3b22c9
commit b0a86cb3ba
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 2 additions and 3 deletions

View File

@ -2,15 +2,14 @@ namespace :gitlab do
desc "GITLAB | Run all tests"
task :test do
cmds = [
%W(rake db:setup),
%W(rake db:seed_fu),
%W(rake gitlab:setup),
%W(rake spinach),
%W(rake spec),
%W(rake jasmine:ci)
]
cmds.each do |cmd|
system({'RAILS_ENV' => 'test'}, *cmd)
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
raise "#{cmd} failed!" unless $?.exitstatus.zero?
end