saxon-rb 0.4.0-java → 0.7.2-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +429 -42
  3. data/.ruby-version +1 -1
  4. data/.yardopts +1 -0
  5. data/Gemfile +2 -2
  6. data/README.md +358 -10
  7. data/Rakefile +237 -7
  8. data/docs/templates/plugin.rb +73 -0
  9. 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
  10. data/lib/saxon-rb.rb +0 -0
  11. data/lib/{saxon_jars.rb → saxon-rb_jars.rb} +2 -2
  12. data/lib/saxon.rb +13 -0
  13. data/lib/saxon/axis_iterator.rb +8 -1
  14. data/lib/saxon/configuration.rb +16 -13
  15. data/lib/saxon/document_builder.rb +216 -5
  16. data/lib/saxon/feature_flags.rb +11 -0
  17. data/lib/saxon/feature_flags/errors.rb +8 -0
  18. data/lib/saxon/feature_flags/helpers.rb +15 -0
  19. data/lib/saxon/feature_flags/version.rb +100 -0
  20. data/lib/saxon/item_type.rb +129 -89
  21. data/lib/saxon/item_type/lexical_string_conversion.rb +214 -59
  22. data/lib/saxon/item_type/value_to_ruby.rb +25 -0
  23. data/lib/saxon/loader.rb +6 -1
  24. data/lib/saxon/nokogiri.rb +78 -0
  25. data/lib/saxon/occurrence_indicator.rb +32 -3
  26. data/lib/saxon/processor.rb +50 -5
  27. data/lib/saxon/qname.rb +37 -2
  28. data/lib/saxon/s9api.rb +5 -0
  29. data/lib/saxon/sequence_type.rb +131 -0
  30. data/lib/saxon/serializer.rb +3 -137
  31. data/lib/saxon/serializer/destination.rb +80 -0
  32. data/lib/saxon/serializer/object.rb +93 -0
  33. data/lib/saxon/serializer/output_properties.rb +83 -0
  34. data/lib/saxon/source.rb +207 -71
  35. data/lib/saxon/version.rb +7 -1
  36. data/lib/saxon/version/library.rb +89 -0
  37. data/lib/saxon/xdm.rb +7 -0
  38. data/lib/saxon/xdm/array.rb +16 -0
  39. data/lib/saxon/xdm/atomic_value.rb +10 -2
  40. data/lib/saxon/xdm/empty_sequence.rb +13 -0
  41. data/lib/saxon/xdm/external_object.rb +1 -0
  42. data/lib/saxon/xdm/function_item.rb +1 -0
  43. data/lib/saxon/xdm/item.rb +7 -0
  44. data/lib/saxon/xdm/map.rb +38 -0
  45. data/lib/saxon/xdm/node.rb +50 -1
  46. data/lib/saxon/xdm/sequence_like.rb +15 -0
  47. data/lib/saxon/xdm/value.rb +21 -5
  48. data/lib/saxon/xpath.rb +9 -0
  49. data/lib/saxon/xpath/compiler.rb +37 -2
  50. data/lib/saxon/xpath/executable.rb +53 -28
  51. data/lib/saxon/xpath/static_context.rb +25 -40
  52. data/lib/saxon/xpath/variable_declaration.rb +16 -49
  53. data/lib/saxon/xslt.rb +12 -0
  54. data/lib/saxon/xslt/compiler.rb +75 -6
  55. data/lib/saxon/xslt/evaluation_context.rb +30 -4
  56. data/lib/saxon/xslt/executable.rb +206 -29
  57. data/lib/saxon/xslt/invocation.rb +97 -0
  58. data/saxon-rb.gemspec +3 -3
  59. metadata +22 -10
  60. 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: b28465f21f4fe169b356cbd1bce2d66ae1ae2a083d2ebe022963e1c3d229ef12
4
+ data.tar.gz: 82da6fa6d8570e791d17b3e46ec644200c7518019c9cec3c7804ad106ef2306e
5
5
  SHA512:
6
- metadata.gz: ebc091905a83b8733e9a1959970721b378160edabe6013043dd1f815393b3674781df53162b7d2e09f2140f6f7c8e258352ab15a114dbda17e1ca5e954425145
7
- data.tar.gz: 0acc6ecd8b6e48bbe45da3b1405e13fde93db3eb62c4a191b4462ab493e31013bdf3ea3d0c48119422b49e906ec76891f44ee6dc631774109ea1cdada07196fa
6
+ metadata.gz: 83cc23c8755cb8843cb8f44afd948582339e26b492ff7eb505badbb9f727f8a98d622b1adf501f06f77ab4554ba40b5e40ead8554a7bd06caf20ab570a7765fb
7
+ data.tar.gz: '09db9b468b5ce5d21bc48c6602ec6a93e1a0ad61b55a550556cff4804912848a0947904d6fa0ff19e9a8cb92cb847e61615dc435c15147e43b197a8fa5d3d6e0'
@@ -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