1
1
version : 2.1
2
2
orbs :
3
3
docker :
circleci/[email protected]
4
+ codecov :
codecov/[email protected]
4
5
5
6
jobs :
6
7
build :
@@ -222,9 +223,6 @@ jobs:
222
223
steps :
223
224
- attach_workspace :
224
225
at : /tmp
225
- - run :
226
- name : Get codecov
227
- command : python -m pip install codecov
228
226
- restore_cache :
229
227
keys :
230
228
- build-v1-{{ .Branch }}-{{ .Revision }}
@@ -274,12 +272,9 @@ jobs:
274
272
--ignore=niworkflows/func/tests/ \
275
273
niworkflows/
276
274
277
- - run :
278
- name : Submit unit test coverage
279
- command : |
280
- cd /tmp/src/niworkflows
281
- python -m codecov --file /tmp/tests/summaries/unittests.xml \
282
- --flags unittests -e CIRCLE_JOB
275
+ - codecov/upload :
276
+ file : /tmp/tests/summaries/unittests.xml
277
+ flags : unittests
283
278
284
279
- run :
285
280
name : Run reportlet tests
@@ -294,12 +289,10 @@ jobs:
294
289
pytest -n auto --junit-xml=/tmp/summaries/reportlets.xml \
295
290
--cov niworkflows --cov-report xml:/tmp/summaries/reportlets.xml \
296
291
niworkflows/tests/
297
- - run :
298
- name : Submit reportlet test coverage
299
- command : |
300
- cd /tmp/src/niworkflows
301
- python -m codecov --file /tmp/tests/summaries/reportlets.xml \
302
- --flags reportlettests -e CIRCLE_JOB
292
+
293
+ - codecov/upload :
294
+ file : /tmp/tests/summaries/reportlets.xml
295
+ flags : reportlettests
303
296
304
297
- run :
305
298
name : Clean up tests directory
@@ -417,16 +410,10 @@ jobs:
417
410
-e COVERAGE_FILE=/tmp/masks/reports/.coverage \
418
411
-v /tmp/masks/reports:/tmp/masks/reports \
419
412
niworkflows:latest coverage xml -o coverage.xml
420
- - run :
421
- name : Get codecov
422
- command : python -m pip install codecov
423
- - run :
424
- name : Submit masks test coverage
425
- working_directory : /tmp/src/niworkflows
426
- command : |
427
- cp /tmp/masks/reports/coverage.xml .
428
- sed -i "s+/src/niworkflows+/tmp/src/niworkflows+g" coverage.xml
429
- python -m codecov --file coverage.xml --flags masks -e CIRCLE_JOB
413
+
414
+ - codecov/upload :
415
+ file : /tmp/tests/summaries/unittests.xml
416
+ flags : masks
430
417
431
418
test_package :
432
419
docker :
0 commit comments