File tree Expand file tree Collapse file tree 6 files changed +21
-14
lines changed Expand file tree Collapse file tree 6 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ install:
4343script :
4444- python -W once:FSL:UserWarning:nipype `which nosetests` --with-doctest --with-doctest-ignore-unicode --with-cov --cover-package nipype --logging-level=DEBUG --verbosity=3
4545after_success :
46- - coveralls --config_file ${COVERAGE_PROCESS_START}
46+ - bash <(curl -s https://codecov.io/bash) -t ac172a50-8e66-42e5-8822-5373fcf54686 -cF unittests
4747deploy :
4848 provider : pypi
4949 user : satra
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ NIPYPE: Neuroimaging in Python: Pipelines and Interfaces
88.. image :: https://circleci.com/gh/nipy/nipype/tree/master.svg?style=svg
99 :target: https://circleci.com/gh/nipy/nipype/tree/master
1010
11- .. image :: https://coveralls .io/repos /nipy/nipype/badge.png
12- :target: https://coveralls .io/r /nipy/nipype
11+ .. image :: https://codecov .io/gh /nipy/nipype/branch/master/graph/ badge.svg
12+ :target: https://codecov .io/gh /nipy/nipype
1313
1414.. image :: https://www.codacy.com/project/badge/182f27944c51474490b369d0a23e2f32
1515 :target: https://www.codacy.com/app/krzysztof-gorgolewski/nipy_nipype
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ dependencies:
2525 timeout : 1600
2626 - mkdir -p ~/docker; docker save nipype/nipype_test:py27 > ~/docker/image.tar :
2727 timeout : 1600
28- - pip install xunitmerge
2928
3029test :
3130 override :
@@ -50,13 +49,10 @@ test:
5049
5150 post :
5251 - bash docker/circleci/teardown.sh
52+ - for xml_f in ${CIRCLE_TEST_REPORTS}/nose/coverage*.xml; do bash <(curl -s https://codecov.io/bash) -f $xml_f -t ac172a50-8e66-42e5-8822-5373fcf54686 -F unittests; done
53+ - for xml_f in ${CIRCLE_TEST_REPORTS}/nose/smoketest*.xml; do bash <(curl -s https://codecov.io/bash) -f $xml_f -t ac172a50-8e66-42e5-8822-5373fcf54686 -F smoketests; done
5354
5455general :
5556 artifacts :
5657 - " ~/docs"
5758 - " ~/logs"
58- - " ~/coverage_py27.xml"
59- - " ~/coverage_py35.xml"
60- - " ~/nosetests_py27.xml"
61- - " ~/nosetests_py35.xml"
62- - " ~/scratch"
Original file line number Diff line number Diff line change 1+ coverage :
2+ status :
3+ project :
4+ unittests : # declare a new status context "tests"
5+ flags :
6+ - " unittests" # only include coverage in "tests/" folder
7+ smoketests : # declare a new status context "app"
8+ paths :
9+ - " smoketests" # remove all files in "tests/"
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ echo 'filemanip_level = DEBUG' >> /root/.nipype/nipype.cfg
1111echo ' log_to_file = true' >> /root/.nipype/nipype.cfg
1212echo ' log_directory = /scratch/logs/' >> /root/.nipype/nipype.cfg
1313
14- python /root/src/nipype/tools/run_examples.py $@
14+ coverage run /root/src/nipype/tools/run_examples.py $@
15+ arr=$@
16+ tmp_var=$( IFS=$' ' ; echo " ${arr[*]} " )
17+ coverage xml -o " /scratch/smoketest_${tmp_var// [^A-Za-z0-9_-]/ _} .xml"
1518
16- chmod 777 -R /scratch/logs
19+ chmod 777 -R /scratch/logs
Original file line number Diff line number Diff line change 77set -e
88
99mkdir -p ${CIRCLE_TEST_REPORTS} /nose
10- xunitmerge ~ /scratch/nosetests* .xml ${CIRCLE_TEST_REPORTS} /nose/${CIRCLE_PROJECT_REPONAME} .xml
11- sudo mv ~ /scratch/coverage* .xml ~ /
10+ sudo mv ~ /scratch/* .xml ${CIRCLE_TEST_REPORTS} /nose
1211mkdir -p ~ /docs
1312sudo mv ~ /scratch/docs/* ~ /docs/
1413mkdir -p ~ /logs
1514sudo mv ~ /scratch/builddocs.log ~ /logs/builddocs.log
16- sudo mv ~ /scratch/logs/* ~ /logs/
15+ sudo mv ~ /scratch/logs/* ~ /logs/
You can’t perform that action at this time.
0 commit comments