forked from rails/spring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: ruby
cache: bundler
sudo: false
rvm:
- 1.9.3 # when removed, get rid of the before_script hack and also the one in application_generator.rb
- 2.0.0
- 2.1.10
- 2.2.7
- 2.3.4
- 2.4.1
- ruby-head
env:
- RAILS_VERSION="~> 4.2.0"
- RAILS_VERSION="~> 5.0.0"
- RAILS_VERSION="~> 5.1.0"
matrix:
exclude: # Rails 5 is incompatible with Ruby < 2.2.2
- rvm: 1.9.3
env: RAILS_VERSION="~> 5.0.0"
- rvm: 2.0.0
env: RAILS_VERSION="~> 5.0.0"
- rvm: 2.1.10
env: RAILS_VERSION="~> 5.0.0"
- rvm: 1.9.3
env: RAILS_VERSION="~> 5.1.0"
- rvm: 2.0.0
env: RAILS_VERSION="~> 5.1.0"
- rvm: 2.1.10
env: RAILS_VERSION="~> 5.1.0"
allow_failures:
- rvm: ruby-head
fast_finish: true
before_script:
- "[ $TRAVIS_RUBY_VERSION = \"1.9.3\" ] && travis_retry gem install mime-types --version \"~> 2\" || true"
- "[ $TRAVIS_RUBY_VERSION = \"1.9.3\" -o $TRAVIS_RUBY_VERSION = \"2.0.0\" ] && travis_retry gem install nokogiri --version \"~> 1.6.8\" || true"
- travis_retry gem install rails --version "$RAILS_VERSION"