Commit b0a86cb3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Use gitlab:setup inside gitlab:test

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 46cc3b22
...@@ -2,15 +2,14 @@ namespace :gitlab do ...@@ -2,15 +2,14 @@ namespace :gitlab do
desc "GITLAB | Run all tests" desc "GITLAB | Run all tests"
task :test do task :test do
cmds = [ cmds = [
%W(rake db:setup), %W(rake gitlab:setup),
%W(rake db:seed_fu),
%W(rake spinach), %W(rake spinach),
%W(rake spec), %W(rake spec),
%W(rake jasmine:ci) %W(rake jasmine:ci)
] ]
cmds.each do |cmd| cmds.each do |cmd|
system({'RAILS_ENV' => 'test'}, *cmd) system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
raise "#{cmd} failed!" unless $?.exitstatus.zero? raise "#{cmd} failed!" unless $?.exitstatus.zero?
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment