Skip to content

Commit

Permalink
Test against Rails 5.x and Ruby 2.x
Browse files Browse the repository at this point in the history
* Rails 5.0 and 5.1
* Ruby 2.2, 2.3, 2.4, and 2.5-dev
* Dev: use default rbenv/chruby/rvm Ruby version
* Travis: cache bundle between builds
  • Loading branch information
jeremy committed Jun 29, 2017
1 parent 8a3e608 commit 3071557
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 15 deletions.
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

68 changes: 54 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
sudo: false
language: ruby
cache: bundler

services:
- mysql
- postgresql

before_script:
- mysql -e 'create database makara_test;'
- psql -c 'create database makara_test;' -U postgres

rvm:
- 2.0.0
- 2.1.1
- 2.0
- 2.1
- 2.2
- 2.3
- 2.4
- ruby-head
- jruby

gemfile:
Expand All @@ -12,17 +26,43 @@ gemfile:
- gemfiles/ar40.gemfile
- gemfiles/ar41.gemfile
- gemfiles/ar42.gemfile
- gemfiles/ar50.gemfile
- gemfiles/ar51.gemfile
- gemfiles/ar-head.gemfile

sudo: false

services:
- mysql
- postgresql

before_script:
- mysql -e 'create database makara_test;'
- psql -c 'create database makara_test;' -U postgres
env:
global:
- "JRUBY_OPTS='--dev -J-Xmx1024M'"

before_install:
- gem update --system 2.1.11
- gem --version
matrix:
exclude:
- gemfile: gemfiles/ar30.gemfile
rvm: 2.2
- gemfile: gemfiles/ar30.gemfile
rvm: 2.3
- gemfile: gemfiles/ar30.gemfile
rvm: 2.4
- gemfile: gemfiles/ar30.gemfile
rvm: ruby-head
- gemfile: gemfiles/ar50.gemfile
rvm: 2.0
- gemfile: gemfiles/ar50.gemfile
rvm: 2.1
- gemfile: gemfiles/ar50.gemfile
rvm: 2.2
- gemfile: gemfiles/ar51.gemfile
rvm: 2.0
- gemfile: gemfiles/ar51.gemfile
rvm: 2.1
- gemfile: gemfiles/ar51.gemfile
rvm: 2.2
- gemfile: gemfiles/ar-head.gemfile
rvm: 2.0
- gemfile: gemfiles/ar-head.gemfile
rvm: 2.1
- gemfile: gemfiles/ar-head.gemfile
rvm: 2.2
allow_failures:
- gemfile: gemfiles/ar-head.gemfile
- rvm: ruby-head
fast_finish: true
15 changes: 15 additions & 0 deletions gemfiles/ar-head.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in makara.gemspec
gemspec :path => '../'


gem 'rake'
gem 'activerecord', :git => 'https://github.com/rails/rails'
gem 'rspec'
gem 'rack'
gem 'timecop'
gem 'mysql2', :platform => :ruby
gem 'activerecord-jdbcmysql-adapter', :platform => :jruby
gem 'pg', :platform => :ruby
gem 'activerecord-jdbcpostgresql-adapter', :platform => :jruby
15 changes: 15 additions & 0 deletions gemfiles/ar50.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in makara.gemspec
gemspec :path => '../'


gem 'rake'
gem 'activerecord', '~> 5.0.0'
gem 'rspec'
gem 'rack'
gem 'timecop'
gem 'mysql2', :platform => :ruby
gem 'activerecord-jdbcmysql-adapter', :platform => :jruby
gem 'pg', :platform => :ruby
gem 'activerecord-jdbcpostgresql-adapter', :platform => :jruby
15 changes: 15 additions & 0 deletions gemfiles/ar51.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in makara.gemspec
gemspec :path => '../'


gem 'rake'
gem 'activerecord', '~> 5.1.0'
gem 'rspec'
gem 'rack'
gem 'timecop'
gem 'mysql2', :platform => :ruby
gem 'activerecord-jdbcmysql-adapter', :platform => :jruby
gem 'pg', :platform => :ruby
gem 'activerecord-jdbcpostgresql-adapter', :platform => :jruby

0 comments on commit 3071557

Please sign in to comment.