language: ruby
rvm:
  - 2.1
  - 2.2
  - 2.3.4
  - 2.4.1
env:
  - SPHINX_BIN=/usr/local/sphinx-2.0.10/bin SPHINX_VERSION=2.0.10
  - SPHINX_BIN=/usr/local/sphinx-2.1.9/bin SPHINX_VERSION=2.1.9
  - SPHINX_BIN=/usr/local/sphinx-2.2.6/bin SPHINX_VERSION=2.2.6
before_script:
- killall searchd; echo ''
- ((ruby --version | grep -q "2.4.1") && export RUBYOPT="--enable-frozen-string-literal") || true
after_script:
- killall searchd; echo ''
sudo: false

language: ruby
rvm:
  - 2.1
  - 2.2
  - 2.3.4
  - 2.4.1
env:
  - SPHINX_BIN=/usr/local/sphinx-2.0.10/bin SPHINX_VERSION=2.0.10
  - SPHINX_BIN=/usr/local/sphinx-2.1.9/bin SPHINX_VERSION=2.1.9
  - SPHINX_BIN=/usr/local/sphinx-2.2.6/bin SPHINX_VERSION=2.2.6
before_script:
- killall searchd; echo ''
- if (ruby -e "exit RUBY_VERSION.to_f >= 2.4"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
after_script:
- killall searchd; echo ''
sudo: false

Check RUBYOPT is actually being set.
Check RUBYOPT is actually being set.
