Skip to content

Commit 5a96ea5

Browse files
authored
Merge pull request #2574 from effigies/ci/travis_codecov
CI: Submit Travis results to codecov
2 parents e26e736 + 05a0f04 commit 5a96ea5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ before_install:
5252
- travis_retry pip install -r requirements.txt
5353
- travis_retry git clone https://github.com/INCF/pybids.git ${HOME}/pybids &&
5454
pip install -e ${HOME}/pybids
55+
- travis_retry pip install codecov
5556

5657
install:
5758
- travis_retry pip install $PIP_FLAGS -e .[$NIPYPE_EXTRAS]
5859

5960
script:
60-
- py.test -v --doctest-modules nipype
61+
- py.test -v --cov nipype --cov-config .coveragerc --cov-report xml:cov.xml -c nipype/pytest.ini --doctest-modules nipype
6162

6263
deploy:
6364
provider: pypi
@@ -69,3 +70,6 @@ deploy:
6970
repo: nipy/nipype
7071
branch: master
7172
distributions: "sdist bdist_wheel"
73+
74+
after_script:
75+
- codecov --file cov.xml --flags unittests -e TRAVIS_JOB_NUMBER

0 commit comments

Comments
 (0)