Skip to content

Commit 83372e4

Browse files
committed
Test against multiple rails versions.
1 parent 481b5a3 commit 83372e4

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ sudo: false
33
before_install:
44
- bundle update
55
rvm:
6-
- 2.2.2
7-
- 2.3.3
6+
- 2.2.7
7+
- 2.3.4
88
- ruby-head
9-
9+
env:
10+
- "RAILS_VERSION=5.1.3"
11+
- "RAILS_VERSION=master"
1012
matrix:
1113
allow_failures:
1214
- rvm: ruby-head
15+
- env: "RAILS_VERSION=master"

Gemfile

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
source 'https://rubygems.org'
22

3+
rails_version = ENV['RAILS_VERSION'] || "default"
4+
rails =
5+
case rails_version
6+
when 'master'
7+
{ github: 'rails/rails' }
8+
when 'default'
9+
'>= 5.0'
10+
else
11+
"~> #{ENV['RAILS_VERSION']}"
12+
end
13+
14+
gem 'rails', rails
15+
316
gemspec

0 commit comments

Comments
 (0)