File tree 2 files changed +26
-5
lines changed
2 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 6
6
global :
7
7
- CC_TEST_REPORTER_ID=98c9b3070ea9ac0e8f7afb6570f181506c3a06372b1db5c7deb8e46089fdf132
8
8
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
9
+ matrix :
10
+ - " RAILS_VERSION=4.2.11"
11
+ - " RAILS_VERSION=5.0.7.1"
12
+ - " RAILS_VERSION=5.1.6.1"
13
+ - " RAILS_VERSION=5.2.2"
14
+ - " RAILS_VERSION=master"
9
15
rvm :
10
- - 2.2.2
11
- - 2.3.3
16
+ - 2.2.9
17
+ - 2.3.8
18
+ - 2.6.1
12
19
- ruby-head
13
20
matrix :
14
21
allow_failures :
15
22
- rvm : ruby-head
23
+ - env : " RAILS_VERSION=master"
16
24
before_script :
17
25
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18
26
- chmod +x ./cc-test-reporter
19
27
- ./cc-test-reporter before-build
20
28
after_script :
21
- # Preferably you will run test-reporter on branch update events. But
22
- # if you setup travis to build PR updates only, you don't need to run
29
+ # Preferably you will run test-reporter on branch update events. But
30
+ # if you setup travis to build PR updates only, you don't need to run
23
31
# the line below
24
32
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
25
- # In the case where travis is setup to build PR updates only,
33
+ # In the case where travis is setup to build PR updates only,
26
34
# uncomment the line below
27
35
# - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
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
+
3
16
gemspec
You can’t perform that action at this time.
0 commit comments