diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2019-10-07 13:28:00 -0700 |
---|---|---|
committer | Jarrod Millman <jarrod.millman@gmail.com> | 2019-10-12 09:21:57 -0700 |
commit | 04bda295dc7a5b2208bf81a1c3d54d277c019a87 (patch) | |
tree | eb3a519de9e757c029051fac3ac1a68ff121f607 /tools | |
parent | 9826de85241f649229086158dee3e397d48a8492 (diff) | |
download | networkx-04bda295dc7a5b2208bf81a1c3d54d277c019a87.tar.gz |
Have CIs use pytest
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/travis/script.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/travis/script.sh b/tools/travis/script.sh index 108ffe89..bee0c2fe 100755 --- a/tools/travis/script.sh +++ b/tools/travis/script.sh @@ -11,7 +11,6 @@ export NX_INSTALL=$(pip show networkx | grep Location | awk '{print $2"/networkx # package (except during the report). So to restrict coverage, we must # inform coverage through the .coveragerc file. cp .coveragerc $NX_INSTALL -cp setup.cfg $NX_INSTALL # Move to new directory so that networkx is not imported from repository. # Why? Because we want the tests to make sure that NetworkX was installed @@ -24,10 +23,10 @@ printenv PWD # Run nosetests. if [[ "${REPORT_COVERAGE}" == 1 ]]; then - nosetests --verbosity=2 --with-ignore-docstrings --with-coverage --cover-package=networkx + pytest --cov=networkx --pyargs networkx cp -a .coverage $NX_SOURCE else - nosetests --verbosity=2 --with-ignore-docstrings + pytest --pyargs networkx fi cd $NX_SOURCE |