File tree 3 files changed +31
-6
lines changed
spec/dummy/config/initializers
3 files changed +31
-6
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=5.0.0
11
+ - RAILS_VERSION=5.1.0
12
+ - RAILS_VERSION=5.2.0
13
+ - RAILS_VERSION=master
9
14
rvm :
10
- - 2.2.2
11
- - 2.3.3
15
+ - 2.2.10
16
+ - 2.3.7
17
+ - 2.4.4
18
+ - 2.5.1
12
19
- ruby-head
13
20
matrix :
14
21
allow_failures :
15
22
- rvm : ruby-head
23
+ - env : RAILS_VERSION=master
24
+ exclude :
25
+ - rvm : 2.3.7
26
+ env : RAILS_VERSION=master
16
27
before_script :
17
28
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18
29
- chmod +x ./cc-test-reporter
19
30
- ./cc-test-reporter before-build
20
31
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
32
+ # Preferably you will run test-reporter on branch update events. But
33
+ # if you setup travis to build PR updates only, you don't need to run
23
34
# the line below
24
35
- 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,
36
+ # In the case where travis is setup to build PR updates only,
26
37
# uncomment the line below
27
38
# - ./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 = case rails_version
5
+ when 'master'
6
+ { github : 'rails/rails' }
7
+ when 'default'
8
+ '>= 5.0'
9
+ else
10
+ "~> #{ ENV [ 'RAILS_VERSION' ] } "
11
+ end
12
+
13
+ gem 'rails' , rails
14
+
3
15
gemspec
Original file line number Diff line number Diff line change 18
18
Rails . application . config . active_record . belongs_to_required_by_default = true
19
19
20
20
# Do not halt callback chains when a callback returns false. Previous versions had true.
21
- ActiveSupport . halt_callback_chains_on_return_false = false
21
+ if Rails . version . to_f < 5.2
22
+ ActiveSupport . halt_callback_chains_on_return_false = false
23
+ end
22
24
23
25
# Configure SSL options to enable HSTS with subdomains. Previous versions had false.
24
26
Rails . application . config . ssl_options = { hsts : { subdomains : true } }
You can’t perform that action at this time.
0 commit comments