summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-09 00:32:55 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-09 00:32:55 +0000
commitbf618557b1ce35094379448478261b9db6af5010 ()
tree8a9ed3fbf3b44d39f1d642ca814925bf95cd570d
parent211ff9499d61c3eb56836a7f7f4e584e400a94c3 (diff)
.travis.yml: force to execute JIT test on Travis
test_jit.rb: with environment variable RUBY_FORCE_TEST_JIT, we can force to test JIT availability. I wanted to have such CI, but Travis was the only option which I can modify easily. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--.travis.yml2
-rw-r--r--test/ruby/test_jit.rb6
2 files changed, 7 insertions, 1 deletions
@@ -61,7 +61,7 @@ before_script:
script:
- "make -s test TESTOPTS=--color=never"
- - "make -s $JOBS test-all -o exts TESTOPTS='-q --color=never --job-status=normal'"
- "make -s $JOBS test-spec MSPECOPT=-j"
# Branch matrix. Not all branches are Travis-ready so we limit branches here.
@@ -61,6 +61,12 @@ class TestJIT < Test::Unit::TestCase
def jit_supported?
return @jit_supported if defined?(@jit_supported)
begin
_, err = eval_with_jit('proc {}.call', verbose: 1, min_calls: 1, timeout: 10)
@jit_supported = err.match?(JIT_SUCCESS_PREFIX)