Skip to content

Fix and reorganise travis #2001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
234 changes: 137 additions & 97 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,129 +34,169 @@ before_script:

script: "script/run_build 2>&1"

rvm:
- 1.8.7
- 2.4.4
- 2.3.7
- 2.2
- 2.1
- 2.0.0
- 1.9.3
- 1.9.2

env:
- RAILS_VERSION='~> 4.2.0'
- RAILS_VERSION=4-2-stable
- RAILS_VERSION='~> 4.1.0'
- RAILS_VERSION=4-1-stable
- RAILS_VERSION='~> 4.0.4'
- RAILS_VERSION=4-0-stable
- RAILS_VERSION='~> 3.2.17'
- RAILS_VERSION=3-2-stable
- RAILS_VERSION='~> 3.1.12'
- RAILS_VERSION='~> 3.0.20'

matrix:
include:
# Rails 5.x only supports 2.2+
- rvm: 2.2.2
env: RAILS_VERSION=master
- rvm: 2.2.2
env: RAILS_VERSION=5-0-stable
- rvm: 2.2.2
env: RAILS_VERSION=5.1.0
- rvm: 2.3.7
# Rails dev / 6 builds >= 2.4.4
- rvm: 2.5.1
env: RAILS_VERSION=master
- rvm: 2.3.7
env: RAILS_VERSION=5-0-stable
- rvm: 2.3.7
env: RAILS_VERSION=5.1.0
- rvm: 2.3.7
env: RAILS_VERSION=5.2.0
- rvm: 2.4.4
env: RAILS_VERSION=master
- rvm: 2.4.4
env: RAILS_VERSION=5-0-stable
- rvm: 2.4.4
env: RAILS_VERSION=5.1.0
- rvm: 2.4.4
env: RAILS_VERSION=5.2.0
- rvm: 2.5.1
env: RAILS_VERSION=master

# Rails 5.2 builds >= 2.2.2
- rvm: 2.5.1
env: RAILS_VERSION=5-0-stable
env: RAILS_VERSION='~> 5.2.0'
- rvm: 2.4.4
env: RAILS_VERSION='~> 5.2.0'
- rvm: 2.3.7
env: RAILS_VERSION='~> 5.2.0'
- rvm: 2.2.10
env: RAILS_VERSION='~> 5.2.0'

# Rails 5.1 Builds >= 2.2.2
- rvm: 2.5.1
env: RAILS_VERSION=5.1.0
env: RAILS_VERSION='~> 5.1.0'
- rvm: 2.4.4
env: RAILS_VERSION='~> 5.1.0'
- rvm: 2.3.7
env: RAILS_VERSION='~> 5.1.0'
- rvm: 2.2.10
env: RAILS_VERSION='~> 5.1.0'

# Rails 5.0 Builds >= 2.2.2
- rvm: 2.5.1
env: RAILS_VERSION=5.2.0
exclude:
# 3.0.x is not supported on MRI 2.0+
- rvm: 2.0.0
env: RAILS_VERSION='~> 3.0.20'
- rvm: 2.1
env: RAILS_VERSION='~> 3.0.20'
- rvm: 2.2
env: RAILS_VERSION='~> 3.0.20'
env: RAILS_VERSION='~> 5.0.0'
- rvm: 2.4.4
env: RAILS_VERSION='~> 5.0.0'
- rvm: 2.3.7
env: RAILS_VERSION='~> 3.0.20'
env: RAILS_VERSION='~> 5.0.0'
- rvm: 2.2.10
env: RAILS_VERSION='~> 5.0.0'

# Rails 4.2 Builds >= 1.9.3
- rvm: 2.4.4
env: RAILS_VERSION='~> 3.0.20'
# 4.x is not supported on MRI ruby-1.8.7 or 1.9.2
- rvm: 1.8.7
env: RAILS_VERSION='~> 4.0.4'
- rvm: 1.9.2
env: RAILS_VERSION='~> 4.0.4'
- rvm: 1.8.7
env: RAILS_VERSION=4-0-stable
- rvm: 1.9.2
env: RAILS_VERSION=4-0-stable
- rvm: 1.8.7
env: RAILS_VERSION='~> 4.1.0'
- rvm: 1.9.2
env: RAILS_VERSION='~> 4.1.0'
- rvm: 1.8.7
env: RAILS_VERSION=4-1-stable
- rvm: 1.9.2
env: RAILS_VERSION=4-1-stable
- rvm: 1.8.7
env: RAILS_VERSION='~> 4.2.0'
- rvm: 1.9.2
- rvm: 2.4.4
env: RAILS_VERSION=4-2-stable
- rvm: 2.3.7
env: RAILS_VERSION='~> 4.2.0'
- rvm: 1.8.7
- rvm: 2.3.7
env: RAILS_VERSION=4-2-stable
- rvm: 1.9.2
- rvm: 2.2.10
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.2.10
env: RAILS_VERSION=4-2-stable
# MRI 2.2+ is not supported on a few versions
- rvm: 2.2
env: RAILS_VERSION='~> 3.1.12'
- rvm: 2.1.10
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.1.10
env: RAILS_VERSION=4-2-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 4.2.0'
- rvm: 2.0.0
env: RAILS_VERSION=4-2-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 4.2.0'
- rvm: 1.9.3
env: RAILS_VERSION=4-2-stable

# Rails 4.1 Builds >= 1.9.3, < 2.4
- rvm: 2.3.7
env: RAILS_VERSION='~> 3.1.12'
# MRI 2.4+ is not supported on a few versions
- rvm: 2.4.4
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.4.4
- rvm: 2.3.7
env: RAILS_VERSION=4-1-stable
- rvm: 2.4.4
- rvm: 2.2.10
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.2.10
env: RAILS_VERSION=4-1-stable
- rvm: 2.1.10
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.1.10
env: RAILS_VERSION=4-1-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 4.1.0'
- rvm: 2.0.0
env: RAILS_VERSION=4-1-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 4.1.0'
- rvm: 1.9.3
env: RAILS_VERSION=4-1-stable

# Rails 4.0 Builds >= 1.8.11, < 2.4
- rvm: 2.3.7
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.4.4
- rvm: 2.3.7
env: RAILS_VERSION=4-0-stable
- rvm: 2.4.4
- rvm: 2.2.10
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.2.10
env: RAILS_VERSION=4-0-stable
- rvm: 2.1.10
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.1.10
env: RAILS_VERSION=4-0-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 4.0.4'
- rvm: 2.0.0
env: RAILS_VERSION=4-0-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 4.0.4'
- rvm: 1.9.3
env: RAILS_VERSION=4-0-stable

# Rails 3.2 Builds < 2.4
- rvm: 2.3.7
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.4.4
- rvm: 2.3.7
env: RAILS_VERSION=3-2-stable
- rvm: 2.4.4
- rvm: 2.2.10
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.2.10
env: RAILS_VERSION=3-2-stable
- rvm: 2.1.10
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.1.10
env: RAILS_VERSION=3-2-stable
- rvm: 2.0.0
env: RAILS_VERSION='~> 3.2.17'
- rvm: 2.0.0
env: RAILS_VERSION=3-2-stable
- rvm: 1.9.3
env: RAILS_VERSION='~> 3.2.17'
- rvm: 1.9.3
env: RAILS_VERSION=3-2-stable
- rvm: 1.9.2
env: RAILS_VERSION='~> 3.2.17'
- rvm: 1.9.2
env: RAILS_VERSION=3-2-stable
- rvm: 1.8.7
env: RAILS_VERSION='~> 3.2.17'
- rvm: 1.8.7
env: RAILS_VERSION=3-2-stable

# Rails 3.1 Builds, < 2.2
- rvm: 2.1.10
env: RAILS_VERSION='~> 3.1.12'
- rvm: 2.4.4
env: RAILS_VERSION=5.2.0.rc1
- rvm: 2.0.0
env: RAILS_VERSION='~> 3.1.12'
- rvm: 1.9.3
env: RAILS_VERSION='~> 3.1.12'
- rvm: 1.9.2
env: RAILS_VERSION='~> 3.1.12'
- rvm: 1.8.7
env: RAILS_VERSION='~> 3.1.12'

# Rails 3.0 Builds, < 2
- rvm: 1.9.3
env: RAILS_VERSION='~> 3.0.20'
- rvm: 1.9.2
env: RAILS_VERSION='~> 3.0.20'
- rvm: 1.8.7
env: RAILS_VERSION='~> 3.0.20'

allow_failures:
- rvm: 2.2.2
env: RAILS_VERSION=master
- rvm: 2.3.7
- rvm: 2.5.1
env: RAILS_VERSION=master
- rvm: 2.4.4
env: RAILS_VERSION=master
- rvm: 2.5.1
env: RAILS_VERSION=master
fast_finish: true

branches:
Expand Down
6 changes: 4 additions & 2 deletions example_app_generator/generate_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
|# Rack::Cache 1.3.0 requires Ruby >= 2.0.0
|gem 'rack-cache', '< 1.3.0' if RUBY_VERSION < '2.0.0'
|
|if RUBY_VERSION >= '1.9.3'
|if RUBY_VERSION >= '2.0.0'
| gem 'rake', '>= 10.0.0'
|elsif RUBY_VERSION >= '1.9.3'
| gem 'rake', '< 12.0.0' # rake 12 requires Ruby 2.0.0 or later
|else
| gem 'rake', '~> 10.0' # rake 11 requires Ruby 1.9.3 or later
| gem 'rake', '< 11.0.0' # rake 11 requires Ruby 1.9.3 or later
|end
|
|# Version 3 of mime-types 3 requires Ruby 2.0
Expand Down