Stop testing Rails 3.0 with Ruby 2.2.
This will slim down the now-extensive travis suite matrix and speed it up. The next tests to trim out will be Rails 3.1 with Ruby 2.2.
This commit is contained in:
parent
73cda0da42
commit
15b0dd1c6a
13
.travis.yml
13
.travis.yml
|
@ -45,6 +45,13 @@ matrix:
|
|||
env: RAILS=master DB=mysql
|
||||
- rvm: 2.2
|
||||
env: RAILS=master DB=postgres
|
||||
exclude:
|
||||
- rvm: 2.2
|
||||
env: RAILS=3-0-stable DB=sqlite
|
||||
- rvm: 2.2
|
||||
env: RAILS=3-0-stable DB=mysql
|
||||
- rvm: 2.2
|
||||
env: RAILS=3-0-stable DB=postgres
|
||||
|
||||
allow_failures:
|
||||
- env: RAILS=master DB=sqlite3
|
||||
|
@ -63,12 +70,6 @@ matrix:
|
|||
env: RAILS=3-1-stable DB=mysql
|
||||
- rvm: 2.2
|
||||
env: RAILS=3-1-stable DB=postgres
|
||||
- rvm: 2.2
|
||||
env: RAILS=3-0-stable DB=sqlite
|
||||
- rvm: 2.2
|
||||
env: RAILS=3-0-stable DB=mysql
|
||||
- rvm: 2.2
|
||||
env: RAILS=3-0-stable DB=postgres
|
||||
|
||||
before_script:
|
||||
- mysql -e 'create database ransack collate utf8_general_ci;'
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
ruby, rails = RUBY_VERSION, ::ActiveRecord::VERSION::STRING.first(3)
|
||||
|
||||
if %w(3.2 4.0 4.1).include?(rails) || (%w(3.0 3.1).include?(rails) && ruby < '2.2')
|
||||
rails = ::ActiveRecord::VERSION::STRING.first(3)
|
||||
|
||||
if %w(3.2 4.0 4.1).include?(rails) || rails == '3.1' && RUBY_VERSION < '2.2'
|
||||
describe 'Ransack' do
|
||||
it 'can be required without errors' do
|
||||
output = `bundle exec ruby -e "require 'ransack'" 2>&1`
|
||||
expect(output).to be_empty
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue