forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
324 lines (270 loc) · 8.16 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
language: java
dist: trusty
# don't need more than a few levels for our builds
git:
depth: 10
quiet: true
cache:
directories:
- $HOME/.m2
before_install:
- unset _JAVA_OPTIONS
- rm ~/.m2/settings.xml
- export MAVEN_SKIP_RC=true
- export MAVEN_OPTS="-Xmn64M -Xmx512M -XX:CompressedClassSpaceSize=96M"
- export JAVA_OPTS="$JAVA_OPTS -XX:CompressedClassSpaceSize=96M"
before_script:
- unset GEM_PATH GEM_HOME IRBRC JRUBY_OPTS
- unset _JAVA_OPTIONS # travis/travis#8408
- export PATH="`pwd`/bin:$PATH"
- echo $HOME
- echo $JAVA_OPTS
- echo $MAVEN_OPTS
jdk:
- openjdk8
os:
- linux
env:
global:
- JAVA_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xms60M -Xmx720M -XX:InitialCodeCacheSize=40M -XX:ReservedCodeCacheSize=120M -Djava.security.egd=file:/dev/./urandom"
- MALLOC_ARENA_MAX=2
install: true
matrix:
fast_finish: true
include:
- stage: test
name: MRI core int
script:
- export JRUBY_OPTS=-J-Xmx1G
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:mri:core:int
- name: MRI core jit
script:
- export JRUBY_OPTS=-J-Xmx1G
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:mri:core:fullint
- name: MRI core jit jdk11
jdk: openjdk11
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:mri:core:jit
- name: MRI core jit jdk16
jdk: openjdk16
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:mri:core:jit
- name: MRI extra
script:
- export JRUBY_OPTS=-J-Xmx1G
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:mri:extra
- name: MRI stdlib
script:
- export JRUBY_OPTS=-J-Xmx1G
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:mri:stdlib
- name: spec/ruby fast
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ruby:fast
- name: spec/ruby fast jit
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ruby:fast:jit
- name: spec/ruby fast jdk11
jdk: openjdk11
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ruby:fast
- name: spec/ruby fast jdk16
jdk: openjdk16
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ruby:fast
- name: spec/ruby slow
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ruby:slow
- env: COMMAND=test/check_versions.sh
- env: PHASE='-Pjruby_complete_jar_extended -Dinvoker.skip=true'
- name: sequel
script: tool/sequel-travis.sh
addons:
postgresql: "9.6"
services:
- postgresql
- name: concurrent ruby
script: tool/concurrent-ruby-travis.sh
- name: JRuby tests int
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:jruby:int
- name: JRuby tests dev
script:
- export JRUBY_OPTS=--dev
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:jruby
- name: JRuby tests jit indy jdk11
jdk: openjdk11
script:
- export JRUBY_OPTS=-Xcompile.invokedynamic
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:jruby
- name: JRuby tests jit indy jdk16
jdk: openjdk16
script:
- export JRUBY_OPTS=-Xcompile.invokedynamic
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:jruby
- name: JRuby tests jit indy
script:
- export JRUBY_OPTS=-Xcompile.invokedynamic
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:jruby
- name: JRuby tests aot
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:jruby:aot
- name: JRuby slow tests
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake test:slow_suites
- name: JI specs
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ji
- name: JI specs jdk11
jdk: openjdk11
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ji
- name: JI specs jdk16
jdk: openjdk16
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ji
- name: JI specs indy
script:
- export JRUBY_OPTS=-Xcompile.invokedynamic
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ji
- name: Compiler specs
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:compiler
- name: Compiler specs indy
script:
- export JRUBY_OPTS=-Xcompile.invokedynamic
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:compiler
- name: Compiler specs indy jdk11
jdk: openjdk11
script:
- export JRUBY_OPTS=-Xcompile.invokedynamic
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:compiler
- name: Compiler specs indy jdk16
jdk: openjdk16
script:
- export JRUBY_OPTS=-Xcompile.invokedynamic
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:compiler
- name: FFI specs
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ffi
- name: FFI specs jdk11
jdk: openjdk11
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:ffi
- name: Regression specs
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:regression
- name: Regression specs jit
script:
- export JRUBY_OPTS=-Xjit.threshold=0
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:regression
- name: JRuby specs
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:jruby
- name: jrubyc specs
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:jrubyc
- name: Profilers specs
script:
- mvn clean package -Pbootstrap
- bundle install
- jruby -S rake spec:profiler
- name: -Pmain openj9 jdk8
env: PHASE='-Ptest'
script:
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
- source install-jdk.sh --url https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u202-b08_openj9-0.12.1/OpenJDK8U-jdk_x64_linux_openj9_8u202b08_openj9-0.12.1.tar.gz
- tool/maven-ci-script.sh
- stage: deploy
name: deploy snapshots
script:
- cp .travis-maven-settings.xml $HOME/.m2/settings.xml
- ./mvnw -B clean deploy -Prelease
if: env(SONATYPE_USERNAME) IS present AND type = push AND branch IN (master, jruby-9.2) # only master and maintenance pushes
allow_failures:
- name: concurrent ruby # temporary, see ruby-concurrency/concurrent-ruby#862
script: tool/maven-ci-script.sh
notifications:
irc:
on_success: change
on_failure: always
only:
branch:
- master
- jruby-9.1
template:
- "%{repository_slug} (%{branch}:%{commit} by %{author}): %{message} %{build_url} [%{duration}]"
channels:
# - "irc.freenode.org#jruby"
# note: `travis encrypt -r "jruby/jruby" "irc.freenode.org#jruby"`
secure: "2DmwSfKvhnrdcC6LTXHHJ4QlSRXDlVUa9jEjXcdgIIZZm4ghbg/mmLjD6bv/ueCC8idQrYyuXRLeKIdaIss64q/lbbaj5VVV1p91fkZ3H+AhgHRPviboEm2bweSmjSWr7luXg4qifoL7YcXEtXw0YKGmub8WSZj4uPZbm5ce2l8="
services:
- redis-server
- haveged
addons:
apt:
packages:
- haveged