mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
4440445baf
`bundle install` doesn't always work -- sometimes it runs into errors making HTTP requests, for whatever reason. This will cause Travis to fail which is pretty annoying. * Travis supplies an executable called `travis_retry` which will automatically retry the command up to 3 times before really failing. Tell Travis to use this when it runs `bundle install` before it runs tests. * In spec_helper, we create a Rails app and use this within the test suite. This will also run `bundle install`. Unfortunately we can't use `travis_retry` for this as it's a function and is not available to us in Ruby-land, so use our own retry logic.
28 lines
553 B
YAML
28 lines
553 B
YAML
script: "bundle exec rake spec cucumber"
|
|
|
|
install: "travis_retry bundle install"
|
|
|
|
rvm:
|
|
- 1.9.2
|
|
- 1.9.3
|
|
|
|
gemfile:
|
|
- gemfiles/3.0.gemfile
|
|
- gemfiles/3.1.gemfile
|
|
- gemfiles/3.2.gemfile
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- rvm: rbx-19mode
|
|
- rvm: jruby-19mode
|
|
include:
|
|
- rvm: 1.9.3
|
|
gemfile: gemfiles/4.0.gemfile
|
|
- rvm: 2.0.0
|
|
gemfile: gemfiles/3.2.gemfile
|
|
- rvm: 2.0.0
|
|
gemfile: gemfiles/4.0.gemfile
|
|
- rvm: rbx-19mode
|
|
gemfile: gemfiles/3.2.gemfile
|
|
- rvm: jruby-19mode
|
|
gemfile: gemfiles/3.2.gemfile
|