1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00

CI: retry failed tests

It's an unfortunate reality that PhantomJS does crash from time to time,
and when you have over 500 tests running on 6 different rubies there is
a high chance that at least on of those runs will fail. So hopefully
this will help mitigate that.
This commit is contained in:
Jon Leighton 2012-10-07 15:11:20 +01:00
parent 6769b801a9
commit 40f63482c4
5 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
/spec/support/custom_phantomjs_called
/ci/Gemfile.*.lock
/spec/tmp
/rspec.failures

1
.rspec Normal file
View file

@ -0,0 +1 @@
--format progress

View file

@ -5,6 +5,7 @@ before_script:
- sudo ci/install_phantomjs
- "export PATH=phantomjs/bin:$PATH"
- phantomjs --version
script: rake ci
rvm:
- 1.9.3
- 1.9.2

View file

@ -4,6 +4,7 @@ require 'rspec/core/rake_task'
base = File.dirname(__FILE__)
require base + "/lib/capybara/poltergeist/version"
require 'coffee-script'
require 'rspec-rerun'
task :autocompile do
system "guard"
@ -22,6 +23,7 @@ end
RSpec::Core::RakeTask.new('test')
task :default => [:compile, :test]
task :ci => 'rspec-rerun:spec'
task :release do
puts "Releasing #{Capybara::Poltergeist::VERSION}, y/n?"

View file

@ -26,6 +26,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'image_size', '~> 1.0'
s.add_development_dependency 'coffee-script', '~> 2.2.0'
s.add_development_dependency 'guard-coffeescript', '~> 1.0.0'
s.add_development_dependency 'rspec-rerun', '~> 0.1'
s.files = Dir.glob("{lib}/**/*") + %w(LICENSE README.md)
s.require_path = 'lib'