Skip to content

replaced coveralls with codecov #1609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Sep 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
794da9d
replaced coveralls with codecov
chrisgorgo Sep 8, 2016
fb01348
replaced the badge
chrisgorgo Sep 8, 2016
78cc31d
get coverage from example runs
chrisgorgo Sep 8, 2016
a6182a9
switch to bash codecov
chrisgorgo Sep 8, 2016
b6763c2
fixed a typo
chrisgorgo Sep 8, 2016
ce23a6d
doh
chrisgorgo Sep 9, 2016
82a2b81
fixed xml paths
chrisgorgo Sep 9, 2016
515a84d
fixed xml paths 2
chrisgorgo Sep 9, 2016
b2891be
fixed xml paths 3
chrisgorgo Sep 9, 2016
5b93067
fixed xml 4
chrisgorgo Sep 9, 2016
c500c94
explicitly point to a coverage file
chrisgorgo Sep 9, 2016
a344a25
save scratch
chrisgorgo Sep 9, 2016
de06544
simplify for sake of speed
chrisgorgo Sep 9, 2016
72139ae
reanable docs
chrisgorgo Sep 9, 2016
cd4b4b2
add token
chrisgorgo Sep 10, 2016
a92ee53
add flags
chrisgorgo Sep 10, 2016
bdf79f7
cache
chrisgorgo Sep 10, 2016
a848cc3
reenabling other tests
chrisgorgo Sep 10, 2016
0a36a2a
don't cache scratch
chrisgorgo Sep 10, 2016
7cae63b
simplify things
chrisgorgo Sep 10, 2016
5993af5
fixed codecov pattern
chrisgorgo Sep 10, 2016
6a169ed
adde codecov.yml
chrisgorgo Sep 10, 2016
e6c82bc
asteriks cleanup
chrisgorgo Sep 11, 2016
01d40ee
Merge branch 'master' of github.com:nipy/nipype into enh/codecov
chrisgorgo Sep 11, 2016
7d8125d
submit reports from withing docker containers
chrisgorgo Sep 11, 2016
1f62226
submit reports from withing docker containers 2
chrisgorgo Sep 11, 2016
c54de25
strip
chrisgorgo Sep 11, 2016
341db5a
more debug
chrisgorgo Sep 11, 2016
2637541
reverting
chrisgorgo Sep 11, 2016
a08f6ac
iterate over xmls explicitly
chrisgorgo Sep 11, 2016
c2ce806
reverted accidental change
chrisgorgo Sep 12, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install:
script:
- python -W once:FSL:UserWarning:nipype `which nosetests` --with-doctest --with-doctest-ignore-unicode --with-cov --cover-package nipype --logging-level=DEBUG --verbosity=3
after_success:
- coveralls --config_file ${COVERAGE_PROCESS_START}
- bash <(curl -s https://codecov.io/bash) -t ac172a50-8e66-42e5-8822-5373fcf54686 -cF unittests
deploy:
provider: pypi
user: satra
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ NIPYPE: Neuroimaging in Python: Pipelines and Interfaces
.. image:: https://circleci.com/gh/nipy/nipype/tree/master.svg?style=svg
:target: https://circleci.com/gh/nipy/nipype/tree/master

.. image:: https://coveralls.io/repos/nipy/nipype/badge.png
:target: https://coveralls.io/r/nipy/nipype
.. image:: https://codecov.io/gh/nipy/nipype/branch/master/graph/badge.svg
:target: https://codecov.io/gh/nipy/nipype

.. image:: https://www.codacy.com/project/badge/182f27944c51474490b369d0a23e2f32
:target: https://www.codacy.com/app/krzysztof-gorgolewski/nipy_nipype
Expand Down
8 changes: 2 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies:
timeout: 1600
- mkdir -p ~/docker; docker save nipype/nipype_test:py27 > ~/docker/image.tar :
timeout: 1600
- pip install xunitmerge

test:
override:
Expand All @@ -50,13 +49,10 @@ test:

post:
- bash docker/circleci/teardown.sh
- 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
- 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

general:
artifacts:
- "~/docs"
- "~/logs"
- "~/coverage_py27.xml"
- "~/coverage_py35.xml"
- "~/nosetests_py27.xml"
- "~/nosetests_py35.xml"
- "~/scratch"
9 changes: 9 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
coverage:
status:
project:
unittests: # declare a new status context "tests"
flags:
- "unittests" # only include coverage in "tests/" folder
smoketests: # declare a new status context "app"
paths:
- "smoketests" # remove all files in "tests/"
7 changes: 5 additions & 2 deletions docker/circleci/run_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ echo 'filemanip_level = DEBUG' >> /root/.nipype/nipype.cfg
echo 'log_to_file = true' >> /root/.nipype/nipype.cfg
echo 'log_directory = /scratch/logs/' >> /root/.nipype/nipype.cfg

python /root/src/nipype/tools/run_examples.py $@
coverage run /root/src/nipype/tools/run_examples.py $@
arr=$@
tmp_var=$( IFS=$' '; echo "${arr[*]}" )
coverage xml -o "/scratch/smoketest_${tmp_var//[^A-Za-z0-9_-]/_}.xml"

chmod 777 -R /scratch/logs
chmod 777 -R /scratch/logs
5 changes: 2 additions & 3 deletions docker/circleci/teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ set -u
set -e

mkdir -p ${CIRCLE_TEST_REPORTS}/nose
xunitmerge ~/scratch/nosetests*.xml ${CIRCLE_TEST_REPORTS}/nose/${CIRCLE_PROJECT_REPONAME}.xml
sudo mv ~/scratch/coverage*.xml ~/
sudo mv ~/scratch/*.xml ${CIRCLE_TEST_REPORTS}/nose
mkdir -p ~/docs
sudo mv ~/scratch/docs/* ~/docs/
mkdir -p ~/logs
sudo mv ~/scratch/builddocs.log ~/logs/builddocs.log
sudo mv ~/scratch/logs/* ~/logs/
sudo mv ~/scratch/logs/* ~/logs/