summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2019-10-09 19:15:49 -0700
committerJarrod Millman <jarrod.millman@gmail.com>2019-10-12 09:26:31 -0700
commiteeef3c8df81dc045dd808af1ef837cd00175ce9d (patch)
treea25cb990984cc552301a49c8e0e67d1b1ea62e67 /tools
parentc193f4a2f09d887e6ef490fa502fc9d3be418682 (diff)
downloadnetworkx-eeef3c8df81dc045dd808af1ef837cd00175ce9d.tar.gz
Have pytest run doctests / not sphinx
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis/build_docs.sh1
-rwxr-xr-xtools/travis/script.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/travis/build_docs.sh b/tools/travis/build_docs.sh
index ea106508..7626f79e 100755
--- a/tools/travis/build_docs.sh
+++ b/tools/travis/build_docs.sh
@@ -7,7 +7,6 @@ pip list
export SPHINXCACHE=$HOME/.cache/sphinx
cd doc
make html
-make doctest
make latexpdf
cd ..
diff --git a/tools/travis/script.sh b/tools/travis/script.sh
index 56c28d7b..cf7907e2 100755
--- a/tools/travis/script.sh
+++ b/tools/travis/script.sh
@@ -25,6 +25,8 @@ printenv PWD
if [[ "${REPORT_COVERAGE}" == 1 ]]; then
pytest --cov=networkx --pyargs networkx
cp -a .coverage $NX_SOURCE
+elif [[ "${DOCTEST}" == 1 ]]; then
+ pytest --doctest-modules --pyargs networkx
else
pytest --pyargs networkx
fi