Skip to content
Snippets Groups Projects
Commit e35d355b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Wes Gurney
Browse files

Make rake gitlab:test works

parent 53990397
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
This commit is part of merge request !4954. Comments created here will be created in the context of that merge request.
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
WebMock.allow_net_connect!
Jasmine.configure do |config|
config.browser = :phantomjs
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment