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:
43
43
script :
44
44
- python -W once:FSL:UserWarning:nipype `which nosetests` --with-doctest --with-doctest-ignore-unicode --with-cov --cover-package nipype --logging-level=DEBUG --verbosity=3
45
45
after_success :
46
- - coveralls --config_file ${COVERAGE_PROCESS_START}
46
+ - bash <(curl -s https://codecov.io/bash) -t ac172a50-8e66-42e5-8822-5373fcf54686 -cF unittests
47
47
deploy :
48
48
provider : pypi
49
49
user : satra
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ NIPYPE: Neuroimaging in Python: Pipelines and Interfaces
8
8
.. image :: https://circleci.com/gh/nipy/nipype/tree/master.svg?style=svg
9
9
:target: https://circleci.com/gh/nipy/nipype/tree/master
10
10
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
13
13
14
14
.. image :: https://www.codacy.com/project/badge/182f27944c51474490b369d0a23e2f32
15
15
: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:
25
25
timeout : 1600
26
26
- mkdir -p ~/docker; docker save nipype/nipype_test:py27 > ~/docker/image.tar :
27
27
timeout : 1600
28
- - pip install xunitmerge
29
28
30
29
test :
31
30
override :
@@ -50,13 +49,10 @@ test:
50
49
51
50
post :
52
51
- 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
53
54
54
55
general :
55
56
artifacts :
56
57
- " ~/docs"
57
58
- " ~/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
11
11
echo ' log_to_file = true' >> /root/.nipype/nipype.cfg
12
12
echo ' log_directory = /scratch/logs/' >> /root/.nipype/nipype.cfg
13
13
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"
15
18
16
- chmod 777 -R /scratch/logs
19
+ chmod 777 -R /scratch/logs
Original file line number Diff line number Diff line change 7
7
set -e
8
8
9
9
mkdir -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
12
11
mkdir -p ~ /docs
13
12
sudo mv ~ /scratch/docs/* ~ /docs/
14
13
mkdir -p ~ /logs
15
14
sudo 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