Skip to content

Commit

Permalink
Update travis (#14)
Browse files Browse the repository at this point in the history
* Support ActiveRecord 6.0

* Update bundle install in tarvis for Ruby 2.2 support drop

* Install fixed-version sqlite3 in travis

* Allow failures for invalid version combinations

* Drop Ruby 2.3 support
  • Loading branch information
dtaniwaki authored Oct 22, 2019
1 parent 8f80439 commit f3406d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
language: ruby
sudo: false
rvm:
- 2.2
- 2.3
- 2.4
- 2.5
- 2.6
env:
jobs:
-
- ACTIVE_RECORD_VERSION=4.0.0
- ACTIVE_RECORD_VERSION=4.1.0
- ACTIVE_RECORD_VERSION=4.2.0
- ACTIVE_RECORD_VERSION=5.0.0
- ACTIVE_RECORD_VERSION=4.0.0 SQLITE3_VERSION=1.3.13
- ACTIVE_RECORD_VERSION=4.1.0 SQLITE3_VERSION=1.3.13
- ACTIVE_RECORD_VERSION=4.2.0 SQLITE3_VERSION=1.3.13
- ACTIVE_RECORD_VERSION=5.0.0 SQLITE3_VERSION=1.3.13
- ACTIVE_RECORD_VERSION=6.0.0
matrix:
allow_failures:
- rvm: 2.4
env: ACTIVE_RECORD_VERSION=4.0.0
env: ACTIVE_RECORD_VERSION=4.0.0 SQLITE3_VERSION=1.3.13
- rvm: 2.4
env: ACTIVE_RECORD_VERSION=4.1.0
env: ACTIVE_RECORD_VERSION=4.1.0 SQLITE3_VERSION=1.3.13
- rvm: 2.5
env: ACTIVE_RECORD_VERSION=4.0.0
env: ACTIVE_RECORD_VERSION=4.0.0 SQLITE3_VERSION=1.3.13
- rvm: 2.5
env: ACTIVE_RECORD_VERSION=4.1.0
env: ACTIVE_RECORD_VERSION=4.1.0 SQLITE3_VERSION=1.3.13
- rvm: 2.6
env: ACTIVE_RECORD_VERSION=4.0.0
env: ACTIVE_RECORD_VERSION=4.0.0 SQLITE3_VERSION=1.3.13
- rvm: 2.6
env: ACTIVE_RECORD_VERSION=4.1.0
env: ACTIVE_RECORD_VERSION=4.1.0 SQLITE3_VERSION=1.3.13
- rvm: 2.4
env: ACTIVE_RECORD_VERSION=6.0.0
before_install:
- gem update --system
- gem --version
install:
# Bundler v2 only supports Ruby v2.3 and above
# For Ruby v2.2, install Bundler v1.x
- if [ $TRAVIS_RUBY_VERSION == "2.2" ];
then gem install bundler -v '< 2';
else gem install bundler;
fi
- gem install bundler
- bundle --version
- bundle install --jobs=3 --retry=3
script:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ gem 'gem-release'
gem 'pry'

gem 'activerecord', "~> #{ENV['ACTIVE_RECORD_VERSION']}" if ENV['ACTIVE_RECORD_VERSION'].to_s != ''
gem 'sqlite3', "~> #{ENV['SQLITE3_VERSION']}" if ENV['SQLITE3_VERSION'].to_s != ''

0 comments on commit f3406d3

Please sign in to comment.