Skip to content

Commit

Permalink
Use codecov instead of coveralls (networkx#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored and dschult committed Aug 6, 2017
1 parent 9250791 commit 7769e35
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 75 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: off
44 changes: 2 additions & 42 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
# .coveragerc to control coverage.py
[run]
branch = False
branch = True
source = networkx
omit = */tests/*,*release.py, */external/*


[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

# ignore fixtures
def setup_module
def teardown_module

# ignore missing import
#except ImportError
#raise ImportError

# runtime errors
except RuntimeError

# hard to test (potentially long running)
def random_powerlaw_tree_sequence
def random_powerlaw_tree

ignore_errors = True

[html]
directory = coverage_html_report
omit = */tests/*, *release.py
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ install:
pip install pydot scikits.sparse lxml;
fi
- if [[ "${PYTHON_VM}" != ipy ]]; then
pip install --upgrade nose coverage coveralls;
pip install --upgrade nose coverage codecov;
pip install nose-ignore-docstring;
fi

Expand Down Expand Up @@ -162,13 +162,8 @@ after_success:
# repository paths. This is what `fixcoverage.py` does.
#
# Report coverage for 2.7 and 3.4 miniconda runs only.
- if [[ "${PYTHON_VM}" != ipy ]]; then
cp .coverage $TRAVIS_BUILD_DIR;
cd $TRAVIS_BUILD_DIR;
if [[ "${TRAVIS_PYTHON_VERSION}${OPTIONAL_DEPS}" =~ 2\.7miniconda|3\.4miniconda ]]; then
python fixcoverage.py ".*/networkx/" "$TRAVIS_BUILD_DIR/networkx/";
coveralls;
fi;
- if [[ "${TRAVIS_PYTHON_VERSION}${OPTIONAL_DEPS}" =~ 2\.7miniconda|3\.4miniconda ]]; then
codecov;
fi

notifications:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ NetworkX
:target: https://readthedocs.org/projects/networkx/?badge=latest
:alt: Documentation Status

.. image:: https://coveralls.io/repos/networkx/networkx/badge.svg?branch=master
:target: https://coveralls.io/r/networkx/networkx?branch=master
.. image:: https://codecov.io/gh/networkx/networkx/branch/master/graph/badge.svg
:target: https://codecov.io/gh/networkx/networkx

NetworkX is a Python package for the creation, manipulation,
and study of the structure, dynamics, and functions
Expand Down
23 changes: 0 additions & 23 deletions fixcoverage.py

This file was deleted.

0 comments on commit 7769e35

Please sign in to comment.