summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2019-10-07 13:28:00 -0700
committerJarrod Millman <jarrod.millman@gmail.com>2019-10-12 09:21:57 -0700
commit04bda295dc7a5b2208bf81a1c3d54d277c019a87 (patch)
treeeb3a519de9e757c029051fac3ac1a68ff121f607 /tools
parent9826de85241f649229086158dee3e397d48a8492 (diff)
downloadnetworkx-04bda295dc7a5b2208bf81a1c3d54d277c019a87.tar.gz
Have CIs use pytest
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis/script.sh5
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