forked from puma/puma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (62 loc) · 2.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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: 2.2.10
dist: trusty
env:
- OS="Trusty 14.04 OpenSSL 1.0.1"
- RUBYOPT=""
- rvm: 2.6.4
dist: xenial
env: OS="Xenial 16.04 OpenSSL 1.0.2"
- rvm: 2.6.4
os: osx
osx_image: xcode11
env: OS="OSX xcode11 OpenSSL 1.1.1"
- rvm: jruby-9.2.9.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: ruby-head
- rvm: ruby-head
env: jit=yes
- rvm: truffleruby
- rvm: 2.7.0
allow_failures:
- rvm: jruby-9.2.9.0
- rvm: jruby-head
- rvm: ruby-head
- rvm: ruby-head
env: jit=yes
- rvm: truffleruby
env:
global:
- TESTOPTS="-v"
- RUBYOPT="--enable-frozen-string-literal"