1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/.travis.yml
MSP-Greg 9b5137a5d1
Fix two Ruby 2.2 issues, add to Actions & remove from Travis [changelog skip] (#2146)
* Add Ruby 2.2 to Actions, remove from Travis

Travis uses OpenSSL 1.0.1, Actions uses 1.0.2

* Ruby 2.2 - binder.rb, server.rb - add single io.closed? check to each
2020-03-04 11:17:38 -06:00

49 lines
1.8 KiB
YAML

dist: bionic
language: ruby
cache: bundler
before_install:
# rubygems 2.7.8 and greater include bundler, leave 2.6.0 untouched
- |
r_eng="$(ruby -e 'STDOUT.write RUBY_ENGINE')";
rv="$(ruby -e 'STDOUT.write RUBY_VERSION')";
if [ "$r_eng" == "ruby" ]; then
if [ "$rv" \< "2.3" ]; then gem update --system 2.7.10 --no-document
elif [ "$rv" \< "2.6" ]; then gem update --system --no-document --conservative
fi
fi
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install ragel
fi
- ruby -v && gem --version && bundle version
before_script:
- if [ "$jit" == "yes" ]; then export RUBYOPT=--jit ; fi ; echo RUBYOPT is $RUBYOPT
- bundle exec rake compile
script:
- bundle exec rake
matrix:
fast_finish: true
include:
- rvm: jruby-9.2.11.0
env:
- JRUBY_OPTS="--debug"
- JAVA_OPTS="--add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist --add-opens java.base/java.util.zip=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.security.cert=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
- rvm: jruby-head
env:
- JRUBY_OPTS="--debug"
- JAVA_OPTS="--add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist --add-opens java.base/java.util.zip=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.security.cert=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
- rvm: truffleruby
allow_failures:
- rvm: jruby-9.2.11.0
- rvm: jruby-head
- rvm: truffleruby
env:
global:
- TESTOPTS="-v"
- RUBYOPT="--enable-frozen-string-literal"