Use gitlab:setup inside gitlab:test
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
46cc3b22c9
commit
b0a86cb3ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue