Make rake gitlab:test works
This commit is contained in:
parent
267e8c73f2
commit
e48c6fab60
2 changed files with 15 additions and 6 deletions
|
@ -1,11 +1,18 @@
|
|||
namespace :gitlab do
|
||||
desc "GITLAB | Run all tests"
|
||||
task :test do
|
||||
Rails.env = "test"
|
||||
Rake::Task["db:setup"].invoke
|
||||
Rake::Task["db:seed_fu"].invoke
|
||||
Rake::Task["spinach"].invoke
|
||||
Rake::Task["spec"].invoke
|
||||
Rake::Task["jasmince:ci"].invoke
|
||||
cmds = [
|
||||
"rake db:setup",
|
||||
"rake db:seed_fu",
|
||||
"rake spinach",
|
||||
"rake spec",
|
||||
"rake jasmine:ci"
|
||||
]
|
||||
|
||||
cmds.each do |cmd|
|
||||
system(cmd + " RAILS_ENV=test")
|
||||
|
||||
raise "#{cmd} failed!" unless $?.exitstatus.zero?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
WebMock.allow_net_connect!
|
||||
|
||||
Jasmine.configure do |config|
|
||||
config.browser = :phantomjs
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue