summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2017-07-07 08:39:43 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2017-07-07 08:39:43 +0200
commite94b1a91ce85306622f03996792d3665a675d69d (patch)
treeaa9ecc45e2a1bc76537f9c092106ed580b75891f /.travis.yml
parent457ffbf3ee02b1b6f57eacb33df44c80f4bf9d71 (diff)
downloadcoderay-e94b1a91ce85306622f03996792d3665a675d69d.tar.gz
ensure that all string literals can be frozen
(thanks, @pat)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 75a57bb..a486c23 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,6 +16,8 @@ rvm:
branches:
only:
- master
+before_script:
+- if (ruby -e "exit RUBY_VERSION.to_f >= 2.4"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
matrix:
allow_failures:
- rvm: ruby-head