Skip to content

Commit

Permalink
Add --enable-frozen-string-literal to travis-ci for ruby-2.4.
Browse files Browse the repository at this point in the history
This inverts the logic for travis-ci tests to make it easier to set
version specific env variables.

Ruby-2.3 doesn't use frozen strings, because rubygems isn't compatible.
  • Loading branch information
larskanis committed Jan 25, 2017
1 parent da5d25f commit 0c6f390
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,37 @@ dist: trusty
group: beta
sudo: required

rvm:
- 2.0
- 2.1
- 2.2.5
- 2.3.1
- 2.4.0
- jruby-1.7
- jruby-9.1.5.0
- rbx-3

os:
- linux
- osx

matrix:
allow_failures:
# https://github.com/travis-ci/travis-ci/issues/5361
include:
- os: linux
rvm: 2.0
- os: osx
rvm: 2.0
- os: linux
rvm: 2.1
- os: osx
rvm: 2.1
- os: linux
rvm: 2.2.5
- os: osx
rvm: 2.2.5
- os: linux
rvm: 2.3.1
- os: osx
rvm: 2.3.1
- os: linux
rvm: rbx-3
exclude:
rvm: 2.4.0
env:
- RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
- os: osx
rvm: 2.4.0
env:
- RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
- os: linux
rvm: jruby-1.7
- os: osx
- os: linux
rvm: jruby-9.1.5.0
- os: osx
- os: linux
rvm: rbx-3

notifications:
Expand Down

0 comments on commit 0c6f390

Please sign in to comment.