saxon-rb 0.4.0-java → 0.5.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +429 -42
  3. data/Gemfile +2 -2
  4. data/README.md +317 -10
  5. data/Rakefile +237 -7
  6. data/lib/net/sf/saxon/Saxon-HE/{9.9.1-5/Saxon-HE-9.9.1-5.jar → 9.9.1-6/Saxon-HE-9.9.1-6.jar} +0 -0
  7. data/lib/saxon-rb.rb +1 -0
  8. data/lib/{saxon_jars.rb → saxon-rb_jars.rb} +2 -2
  9. data/lib/saxon.rb +13 -0
  10. data/lib/saxon/axis_iterator.rb +8 -1
  11. data/lib/saxon/configuration.rb +1 -0
  12. data/lib/saxon/item_type.rb +12 -17
  13. data/lib/saxon/item_type/lexical_string_conversion.rb +136 -58
  14. data/lib/saxon/item_type/value_to_ruby.rb +13 -0
  15. data/lib/saxon/loader.rb +4 -1
  16. data/lib/saxon/nokogiri.rb +78 -0
  17. data/lib/saxon/occurrence_indicator.rb +32 -3
  18. data/lib/saxon/processor.rb +32 -1
  19. data/lib/saxon/qname.rb +37 -2
  20. data/lib/saxon/s9api.rb +5 -0
  21. data/lib/saxon/sequence_type.rb +131 -0
  22. data/lib/saxon/source.rb +207 -71
  23. data/lib/saxon/version.rb +1 -1
  24. data/lib/saxon/xdm.rb +7 -0
  25. data/lib/saxon/xdm/array.rb +16 -0
  26. data/lib/saxon/xdm/atomic_value.rb +7 -1
  27. data/lib/saxon/xdm/empty_sequence.rb +13 -0
  28. data/lib/saxon/xdm/external_object.rb +1 -0
  29. data/lib/saxon/xdm/function_item.rb +1 -0
  30. data/lib/saxon/xdm/item.rb +7 -0
  31. data/lib/saxon/xdm/map.rb +38 -0
  32. data/lib/saxon/xdm/node.rb +19 -1
  33. data/lib/saxon/xdm/sequence_like.rb +15 -0
  34. data/lib/saxon/xdm/value.rb +21 -5
  35. data/lib/saxon/xpath.rb +9 -0
  36. data/lib/saxon/xpath/compiler.rb +36 -1
  37. data/lib/saxon/xpath/executable.rb +53 -28
  38. data/lib/saxon/xpath/static_context.rb +19 -39
  39. data/lib/saxon/xpath/variable_declaration.rb +16 -49
  40. data/lib/saxon/xslt.rb +12 -0
  41. data/lib/saxon/xslt/compiler.rb +75 -6
  42. data/lib/saxon/xslt/evaluation_context.rb +19 -3
  43. data/lib/saxon/xslt/executable.rb +204 -14
  44. data/saxon-rb.gemspec +1 -1
  45. metadata +9 -7
  46. data/saxon.gemspec +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 438d4b8ef09160fb03c5e6d4d03ef3577ab31052c26bd73d74826fda6ac26132
4
- data.tar.gz: c3ca6f0bea6dd55f650074e02b7d81f9821a1677d45fe53c919f5d7163e47534
3
+ metadata.gz: cc90ab039f1169f43563e5036774ae66149c78c7b0027ea2b0cb72cafcd0b5e3
4
+ data.tar.gz: 18490756712240e5d3869d73dd788ae980178ef3b79ffb41330a8e7db80c1b47
5
5
  SHA512:
6
- metadata.gz: ebc091905a83b8733e9a1959970721b378160edabe6013043dd1f815393b3674781df53162b7d2e09f2140f6f7c8e258352ab15a114dbda17e1ca5e954425145
7
- data.tar.gz: 0acc6ecd8b6e48bbe45da3b1405e13fde93db3eb62c4a191b4462ab493e31013bdf3ea3d0c48119422b49e906ec76891f44ee6dc631774109ea1cdada07196fa
6
+ metadata.gz: d20fdd7e7b7fb7842d3d6059bb176903195fc911e46f4ffaecfa22d5dcc4e8919dadce8fe85feb5ab84045484d97f97ed3217330d77a4454a31c0b5efe1fc220
7
+ data.tar.gz: c39dd5d7fa31cf2e58cddc002f51d218543f38eb270c10e618105eb559c1467cd338ca68abe317d4574427ef2461c1f3112c7f0acf0e2dd9f9463c67992b8660
data/.circleci/config.yml CHANGED
@@ -1,62 +1,449 @@
1
+ ---
1
2
  version: 2
2
3
  jobs:
3
- test_vendored_saxon:
4
+ JRuby 9.2.9.0, JDK 8 Saxon HE 9.8:
5
+ docker:
6
+ - image: fidothe/circleci:jruby-9.2.9.0-8-jdk-slim
7
+ environment:
8
+ BUNDLE_JOBS: 3
9
+ BUNDLE_RETRY: 3
10
+ BUNDLE_PATH: vendor/bundle
11
+ JRUBY_OPTS: "--dev --debug"
12
+ ALTERNATE_SAXON_HOME: "/tmp/saxon"
13
+ steps:
14
+ - checkout
15
+ - run:
16
+ name: Download SaxonHE9-8-0-15J.zip
17
+ command: |-
18
+ mkdir -p /tmp/saxon
19
+ cd /tmp/saxon
20
+ curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
21
+ unzip SaxonHE9-8-0-15J.zip
22
+ rm -f SaxonHE9-8-0-15J.zip
23
+ - run:
24
+ name: Bundle Install
25
+ command: bundle check || bundle install
26
+ - run:
27
+ name: Install Code Climate Test Reporter
28
+ command: |
29
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
30
+ chmod +x ./cc-test-reporter
31
+ - run:
32
+ name: Run the tests, and upload coverage data to Code Climate
33
+ command: |-
34
+ ./cc-test-reporter before-build
35
+ mkdir -p /tmp/test-results
36
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
37
+ if [ $? -eq 0 ]; then ./cc-test-reporter format-coverage -t simplecov -o "cc-coverage-alt-saxon.json"; fi
38
+ - persist_to_workspace:
39
+ root: "~/project"
40
+ paths:
41
+ - cc-coverage*
42
+ - store_test_results:
43
+ path: "/tmp/test-results"
44
+ - store_artifacts:
45
+ path: "/tmp/test-results"
46
+ destination: test-results
47
+ JRuby 9.2.9.0, JDK 8:
48
+ docker:
49
+ - image: fidothe/circleci:jruby-9.2.9.0-8-jdk-slim
50
+ environment:
51
+ BUNDLE_JOBS: 3
52
+ BUNDLE_RETRY: 3
53
+ BUNDLE_PATH: vendor/bundle
54
+ JRUBY_OPTS: "--dev --debug"
55
+ steps:
56
+ - checkout
57
+ - run:
58
+ name: Bundle Install
59
+ command: bundle check || bundle install
60
+ - run:
61
+ name: Install Code Climate Test Reporter
62
+ command: |
63
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
64
+ chmod +x ./cc-test-reporter
65
+ - run:
66
+ name: Run the tests, and upload coverage data to Code Climate
67
+ command: |-
68
+ ./cc-test-reporter before-build
69
+ mkdir -p /tmp/test-results
70
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
71
+ if [ $? -eq 0 ]; then ./cc-test-reporter format-coverage -t simplecov -o "cc-coverage.json"; fi
72
+ - persist_to_workspace:
73
+ root: "~/project"
74
+ paths:
75
+ - cc-coverage*
76
+ - store_test_results:
77
+ path: "/tmp/test-results"
78
+ - store_artifacts:
79
+ path: "/tmp/test-results"
80
+ destination: test-results
81
+ JRuby 9.2.9.0, JDK 11 Saxon HE 9.8:
82
+ docker:
83
+ - image: fidothe/circleci:jruby-9.2.9.0-11-jdk-slim
84
+ environment:
85
+ BUNDLE_JOBS: 3
86
+ BUNDLE_RETRY: 3
87
+ BUNDLE_PATH: vendor/bundle
88
+ JRUBY_OPTS: "--dev --debug"
89
+ ALTERNATE_SAXON_HOME: "/tmp/saxon"
90
+ steps:
91
+ - checkout
92
+ - run:
93
+ name: Download SaxonHE9-8-0-15J.zip
94
+ command: |-
95
+ mkdir -p /tmp/saxon
96
+ cd /tmp/saxon
97
+ curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
98
+ unzip SaxonHE9-8-0-15J.zip
99
+ rm -f SaxonHE9-8-0-15J.zip
100
+ - run:
101
+ name: Bundle Install
102
+ command: bundle check || bundle install
103
+ - run:
104
+ name: Run the tests
105
+ command: |-
106
+ mkdir -p /tmp/test-results
107
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
108
+ - store_test_results:
109
+ path: "/tmp/test-results"
110
+ - store_artifacts:
111
+ path: "/tmp/test-results"
112
+ destination: test-results
113
+ JRuby 9.2.9.0, JDK 11:
114
+ docker:
115
+ - image: fidothe/circleci:jruby-9.2.9.0-11-jdk-slim
116
+ environment:
117
+ BUNDLE_JOBS: 3
118
+ BUNDLE_RETRY: 3
119
+ BUNDLE_PATH: vendor/bundle
120
+ JRUBY_OPTS: "--dev --debug"
121
+ steps:
122
+ - checkout
123
+ - run:
124
+ name: Bundle Install
125
+ command: bundle check || bundle install
126
+ - run:
127
+ name: Run the tests
128
+ command: |-
129
+ mkdir -p /tmp/test-results
130
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
131
+ - store_test_results:
132
+ path: "/tmp/test-results"
133
+ - store_artifacts:
134
+ path: "/tmp/test-results"
135
+ destination: test-results
136
+ JRuby 9.2.9.0, JDK 13 Saxon HE 9.8:
137
+ docker:
138
+ - image: fidothe/circleci:jruby-9.2.9.0-13-jdk-slim
139
+ environment:
140
+ BUNDLE_JOBS: 3
141
+ BUNDLE_RETRY: 3
142
+ BUNDLE_PATH: vendor/bundle
143
+ JRUBY_OPTS: "--dev --debug"
144
+ ALTERNATE_SAXON_HOME: "/tmp/saxon"
145
+ steps:
146
+ - checkout
147
+ - run:
148
+ name: Download SaxonHE9-8-0-15J.zip
149
+ command: |-
150
+ mkdir -p /tmp/saxon
151
+ cd /tmp/saxon
152
+ curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
153
+ unzip SaxonHE9-8-0-15J.zip
154
+ rm -f SaxonHE9-8-0-15J.zip
155
+ - run:
156
+ name: Bundle Install
157
+ command: bundle check || bundle install
158
+ - run:
159
+ name: Run the tests
160
+ command: |-
161
+ mkdir -p /tmp/test-results
162
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
163
+ - store_test_results:
164
+ path: "/tmp/test-results"
165
+ - store_artifacts:
166
+ path: "/tmp/test-results"
167
+ destination: test-results
168
+ JRuby 9.2.9.0, JDK 13:
169
+ docker:
170
+ - image: fidothe/circleci:jruby-9.2.9.0-13-jdk-slim
171
+ environment:
172
+ BUNDLE_JOBS: 3
173
+ BUNDLE_RETRY: 3
174
+ BUNDLE_PATH: vendor/bundle
175
+ JRUBY_OPTS: "--dev --debug"
176
+ steps:
177
+ - checkout
178
+ - run:
179
+ name: Bundle Install
180
+ command: bundle check || bundle install
181
+ - run:
182
+ name: Run the tests
183
+ command: |-
184
+ mkdir -p /tmp/test-results
185
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
186
+ - store_test_results:
187
+ path: "/tmp/test-results"
188
+ - store_artifacts:
189
+ path: "/tmp/test-results"
190
+ destination: test-results
191
+ JRuby 9.1.17.0, JDK 8 Saxon HE 9.8:
192
+ docker:
193
+ - image: fidothe/circleci:jruby-9.1.17.0-8-jdk-slim
4
194
  environment:
5
195
  BUNDLE_JOBS: 3
6
196
  BUNDLE_RETRY: 3
7
197
  BUNDLE_PATH: vendor/bundle
8
198
  JRUBY_OPTS: "--dev --debug"
199
+ ALTERNATE_SAXON_HOME: "/tmp/saxon"
200
+ steps:
201
+ - checkout
202
+ - run:
203
+ name: Download SaxonHE9-8-0-15J.zip
204
+ command: |-
205
+ mkdir -p /tmp/saxon
206
+ cd /tmp/saxon
207
+ curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
208
+ unzip SaxonHE9-8-0-15J.zip
209
+ rm -f SaxonHE9-8-0-15J.zip
210
+ - run:
211
+ name: Bundle Install
212
+ command: bundle check || bundle install
213
+ - run:
214
+ name: Run the tests
215
+ command: |-
216
+ mkdir -p /tmp/test-results
217
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
218
+ - store_test_results:
219
+ path: "/tmp/test-results"
220
+ - store_artifacts:
221
+ path: "/tmp/test-results"
222
+ destination: test-results
223
+ JRuby 9.1.17.0, JDK 8:
224
+ docker:
225
+ - image: fidothe/circleci:jruby-9.1.17.0-8-jdk-slim
226
+ environment:
227
+ BUNDLE_JOBS: 3
228
+ BUNDLE_RETRY: 3
229
+ BUNDLE_PATH: vendor/bundle
230
+ JRUBY_OPTS: "--dev --debug"
231
+ steps:
232
+ - checkout
233
+ - run:
234
+ name: Bundle Install
235
+ command: bundle check || bundle install
236
+ - run:
237
+ name: Run the tests
238
+ command: |-
239
+ mkdir -p /tmp/test-results
240
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
241
+ - store_test_results:
242
+ path: "/tmp/test-results"
243
+ - store_artifacts:
244
+ path: "/tmp/test-results"
245
+ destination: test-results
246
+ JRuby 9.2.10.0-SNAPSHOT-latest, JDK 8 Saxon HE 9.8:
247
+ docker:
248
+ - image: fidothe/circleci:jruby-9.2.10.0-SNAPSHOT-latest-8-jdk-slim
249
+ environment:
250
+ BUNDLE_JOBS: 3
251
+ BUNDLE_RETRY: 3
252
+ BUNDLE_PATH: vendor/bundle
253
+ JRUBY_OPTS: "--dev --debug"
254
+ ALTERNATE_SAXON_HOME: "/tmp/saxon"
255
+ steps:
256
+ - checkout
257
+ - run:
258
+ name: Download SaxonHE9-8-0-15J.zip
259
+ command: |-
260
+ mkdir -p /tmp/saxon
261
+ cd /tmp/saxon
262
+ curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
263
+ unzip SaxonHE9-8-0-15J.zip
264
+ rm -f SaxonHE9-8-0-15J.zip
265
+ - run:
266
+ name: Bundle Install
267
+ command: bundle check || bundle install
268
+ - run:
269
+ name: Run the tests
270
+ command: |-
271
+ mkdir -p /tmp/test-results
272
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
273
+ - store_test_results:
274
+ path: "/tmp/test-results"
275
+ - store_artifacts:
276
+ path: "/tmp/test-results"
277
+ destination: test-results
278
+ JRuby 9.2.10.0-SNAPSHOT-latest, JDK 8:
9
279
  docker:
10
- - image: circleci/jruby:9.2.8.0-jdk
280
+ - image: fidothe/circleci:jruby-9.2.10.0-SNAPSHOT-latest-8-jdk-slim
281
+ environment:
282
+ BUNDLE_JOBS: 3
283
+ BUNDLE_RETRY: 3
284
+ BUNDLE_PATH: vendor/bundle
285
+ JRUBY_OPTS: "--dev --debug"
11
286
  steps:
12
- - checkout
13
- - run:
14
- name: Bundle Install
15
- command: bundle check || bundle install
16
- - run:
17
- command: |
18
- mkdir /tmp/test-results
19
- bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
20
- - store_test_results:
21
- path: /tmp/test-results
22
- - store_artifacts:
23
- path: /tmp/test-results
24
- destination: test-results
25
- test_saxon_98:
287
+ - checkout
288
+ - run:
289
+ name: Bundle Install
290
+ command: bundle check || bundle install
291
+ - run:
292
+ name: Run the tests
293
+ command: |-
294
+ mkdir -p /tmp/test-results
295
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
296
+ - store_test_results:
297
+ path: "/tmp/test-results"
298
+ - store_artifacts:
299
+ path: "/tmp/test-results"
300
+ destination: test-results
301
+ JRuby 9.2.10.0-SNAPSHOT-latest, JDK 11 Saxon HE 9.8:
302
+ docker:
303
+ - image: fidothe/circleci:jruby-9.2.10.0-SNAPSHOT-latest-11-jdk-slim
26
304
  environment:
27
305
  BUNDLE_JOBS: 3
28
306
  BUNDLE_RETRY: 3
29
307
  BUNDLE_PATH: vendor/bundle
30
- ALTERNATE_SAXON_HOME: /tmp/saxon
31
308
  JRUBY_OPTS: "--dev --debug"
309
+ ALTERNATE_SAXON_HOME: "/tmp/saxon"
310
+ steps:
311
+ - checkout
312
+ - run:
313
+ name: Download SaxonHE9-8-0-15J.zip
314
+ command: |-
315
+ mkdir -p /tmp/saxon
316
+ cd /tmp/saxon
317
+ curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
318
+ unzip SaxonHE9-8-0-15J.zip
319
+ rm -f SaxonHE9-8-0-15J.zip
320
+ - run:
321
+ name: Bundle Install
322
+ command: bundle check || bundle install
323
+ - run:
324
+ name: Run the tests
325
+ command: |-
326
+ mkdir -p /tmp/test-results
327
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
328
+ - store_test_results:
329
+ path: "/tmp/test-results"
330
+ - store_artifacts:
331
+ path: "/tmp/test-results"
332
+ destination: test-results
333
+ JRuby 9.2.10.0-SNAPSHOT-latest, JDK 11:
334
+ docker:
335
+ - image: fidothe/circleci:jruby-9.2.10.0-SNAPSHOT-latest-11-jdk-slim
336
+ environment:
337
+ BUNDLE_JOBS: 3
338
+ BUNDLE_RETRY: 3
339
+ BUNDLE_PATH: vendor/bundle
340
+ JRUBY_OPTS: "--dev --debug"
341
+ steps:
342
+ - checkout
343
+ - run:
344
+ name: Bundle Install
345
+ command: bundle check || bundle install
346
+ - run:
347
+ name: Run the tests
348
+ command: |-
349
+ mkdir -p /tmp/test-results
350
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
351
+ - store_test_results:
352
+ path: "/tmp/test-results"
353
+ - store_artifacts:
354
+ path: "/tmp/test-results"
355
+ destination: test-results
356
+ JRuby 9.2.10.0-SNAPSHOT-latest, JDK 13 Saxon HE 9.8:
357
+ docker:
358
+ - image: fidothe/circleci:jruby-9.2.10.0-SNAPSHOT-latest-13-jdk-slim
359
+ environment:
360
+ BUNDLE_JOBS: 3
361
+ BUNDLE_RETRY: 3
362
+ BUNDLE_PATH: vendor/bundle
363
+ JRUBY_OPTS: "--dev --debug"
364
+ ALTERNATE_SAXON_HOME: "/tmp/saxon"
365
+ steps:
366
+ - checkout
367
+ - run:
368
+ name: Download SaxonHE9-8-0-15J.zip
369
+ command: |-
370
+ mkdir -p /tmp/saxon
371
+ cd /tmp/saxon
372
+ curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
373
+ unzip SaxonHE9-8-0-15J.zip
374
+ rm -f SaxonHE9-8-0-15J.zip
375
+ - run:
376
+ name: Bundle Install
377
+ command: bundle check || bundle install
378
+ - run:
379
+ name: Run the tests
380
+ command: |-
381
+ mkdir -p /tmp/test-results
382
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
383
+ - store_test_results:
384
+ path: "/tmp/test-results"
385
+ - store_artifacts:
386
+ path: "/tmp/test-results"
387
+ destination: test-results
388
+ JRuby 9.2.10.0-SNAPSHOT-latest, JDK 13:
389
+ docker:
390
+ - image: fidothe/circleci:jruby-9.2.10.0-SNAPSHOT-latest-13-jdk-slim
391
+ environment:
392
+ BUNDLE_JOBS: 3
393
+ BUNDLE_RETRY: 3
394
+ BUNDLE_PATH: vendor/bundle
395
+ JRUBY_OPTS: "--dev --debug"
396
+ steps:
397
+ - checkout
398
+ - run:
399
+ name: Bundle Install
400
+ command: bundle check || bundle install
401
+ - run:
402
+ name: Run the tests
403
+ command: |-
404
+ mkdir -p /tmp/test-results
405
+ bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
406
+ - store_test_results:
407
+ path: "/tmp/test-results"
408
+ - store_artifacts:
409
+ path: "/tmp/test-results"
410
+ destination: test-results
411
+ Report test coverage to Code Climate:
32
412
  docker:
33
- - image: circleci/jruby:9.2.8.0-jdk
413
+ - image: circleci/ruby:latest
34
414
  steps:
35
- - checkout
36
- - run:
37
- name: Download Saxon 9.8
38
- command: |
39
- mkdir /tmp/saxon
40
- cd /tmp/saxon
41
- curl -L -O https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/SaxonHE9-8-0-15J.zip
42
- unzip SaxonHE9-8-0-15J.zip
43
- rm -f SaxonHE9-8-0-15J.zip
44
- - run:
45
- name: Bundle Install
46
- command: bundle check || bundle install
47
- - run:
48
- command: |
49
- mkdir /tmp/test-results
50
- bundle exec rspec spec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
51
- - store_test_results:
52
- path: /tmp/test-results
53
- - store_artifacts:
54
- path: /tmp/test-results
55
- destination: test-results
56
-
415
+ - attach_workspace:
416
+ at: "/tmp/workspace"
417
+ - run:
418
+ name: Install Code Climate Test Reporter
419
+ command: |
420
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
421
+ chmod +x ./cc-test-reporter
422
+ - run:
423
+ name: Upload test coverage to Code Climate
424
+ command: |-
425
+ find /tmp/workspace -name 'cc-coverage*.json' &&\
426
+ ./cc-test-reporter sum-coverage /tmp/workspace/cc-coverage*.json &&\
427
+ ./cc-test-reporter upload-coverage
57
428
  workflows:
58
429
  version: 2
59
430
  build_and_test:
60
431
  jobs:
61
- - test_vendored_saxon
62
- - test_saxon_98
432
+ - JRuby 9.2.9.0, JDK 8 Saxon HE 9.8
433
+ - JRuby 9.2.9.0, JDK 8
434
+ - JRuby 9.2.9.0, JDK 11 Saxon HE 9.8
435
+ - JRuby 9.2.9.0, JDK 11
436
+ - JRuby 9.2.9.0, JDK 13 Saxon HE 9.8
437
+ - JRuby 9.2.9.0, JDK 13
438
+ - JRuby 9.1.17.0, JDK 8 Saxon HE 9.8
439
+ - JRuby 9.1.17.0, JDK 8
440
+ - JRuby 9.2.10.0-SNAPSHOT-latest, JDK 8 Saxon HE 9.8
441
+ - JRuby 9.2.10.0-SNAPSHOT-latest, JDK 8
442
+ - JRuby 9.2.10.0-SNAPSHOT-latest, JDK 11 Saxon HE 9.8
443
+ - JRuby 9.2.10.0-SNAPSHOT-latest, JDK 11
444
+ - JRuby 9.2.10.0-SNAPSHOT-latest, JDK 13 Saxon HE 9.8
445
+ - JRuby 9.2.10.0-SNAPSHOT-latest, JDK 13
446
+ - Report test coverage to Code Climate:
447
+ requires:
448
+ - JRuby 9.2.9.0, JDK 8 Saxon HE 9.8
449
+ - JRuby 9.2.9.0, JDK 8