Skip to content

Commit 5c9a751

Browse files
authored
Merge pull request #1609 from chrisfilo/enh/codecov
replaced coveralls with codecov
2 parents bd3a7ef + c2ce806 commit 5c9a751

File tree

6 files changed

+21
-14
lines changed

6 files changed

+21
-14
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ install:
4343
script:
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
4545
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
4747
deploy:
4848
provider: pypi
4949
user: satra

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

circle.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

3029
test:
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

5455
general:
5556
artifacts:
5657
- "~/docs"
5758
- "~/logs"
58-
- "~/coverage_py27.xml"
59-
- "~/coverage_py35.xml"
60-
- "~/nosetests_py27.xml"
61-
- "~/nosetests_py35.xml"
62-
- "~/scratch"

codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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/"

docker/circleci/run_examples.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ echo 'filemanip_level = DEBUG' >> /root/.nipype/nipype.cfg
1111
echo 'log_to_file = true' >> /root/.nipype/nipype.cfg
1212
echo '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

docker/circleci/teardown.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ set -u
77
set -e
88

99
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
1211
mkdir -p ~/docs
1312
sudo mv ~/scratch/docs/* ~/docs/
1413
mkdir -p ~/logs
1514
sudo mv ~/scratch/builddocs.log ~/logs/builddocs.log
16-
sudo mv ~/scratch/logs/* ~/logs/
15+
sudo mv ~/scratch/logs/* ~/logs/

0 commit comments

Comments
 (0)