mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 22:22:01 +08:00
Increase Qunit tests timeout on Travis.
This commit is contained in:
parent
2ffb42a055
commit
5200446eb7
|
@ -55,4 +55,4 @@ install:
|
||||||
- bash -c "if [ '$RAILS_MASTER' == '1' ]; then bundle update --retry=3 --jobs=3 arel rails rails-observers seed-fu; fi"
|
- bash -c "if [ '$RAILS_MASTER' == '1' ]; then bundle update --retry=3 --jobs=3 arel rails rails-observers seed-fu; fi"
|
||||||
- bash -c "if [ '$RAILS_MASTER' == '0' ]; then bundle install --without development --deployment --retry=3 --jobs=3; fi"
|
- bash -c "if [ '$RAILS_MASTER' == '0' ]; then bundle install --without development --deployment --retry=3 --jobs=3; fi"
|
||||||
|
|
||||||
script: 'bundle exec rspec && bundle exec rake plugin:spec && bundle exec rake qunit:test'
|
script: 'bundle exec rspec && bundle exec rake plugin:spec && bundle exec rake qunit:test['200000']'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
desc "Runs the qunit test suite"
|
desc "Runs the qunit test suite"
|
||||||
|
|
||||||
task "qunit:test" => :environment do
|
task "qunit:test", [:timeout] => :environment do |_, args|
|
||||||
|
|
||||||
require "rack"
|
require "rack"
|
||||||
require "socket"
|
require "socket"
|
||||||
|
@ -35,7 +35,7 @@ task "qunit:test" => :environment do
|
||||||
begin
|
begin
|
||||||
success = true
|
success = true
|
||||||
test_path = "#{Rails.root}/vendor/assets/javascripts"
|
test_path = "#{Rails.root}/vendor/assets/javascripts"
|
||||||
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit"
|
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit #{args[:timeout]}"
|
||||||
|
|
||||||
options = {}
|
options = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user