From 6e5ea179e845ad901d12a576dcc991d8b38a72f6 Mon Sep 17 00:00:00 2001 From: Jake Bolewski Date: Wed, 24 Oct 2018 09:00:15 -0600 Subject: [PATCH] Have Travis CI run doctests --- .travis.yml | 4 +++- README.rst | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 262dbad677..031dd5d904 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,10 @@ install: script: # Build and test extension module - python setup.py build_ext --inplace + # Run doctests + - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then (LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/tiledb:$LD_LIBRARY_PATH" python -m doctest -o NORMALIZE_WHITESPACE -f tiledb/libtiledb.pyx); fi + # Run unittests - LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/tiledb:$LD_LIBRARY_PATH" python -m unittest tiledb.tests.all.suite_test - - # LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/tiledb:$LD_LIBRARY_PATH" python -m doctest tiledb/libtiledb.pyx # Check wheel build - python setup.py bdist_wheel - whl_file=`pwd`/dist/`ls dist` diff --git a/README.rst b/README.rst index e48b6d3555..c6a0e50545 100644 --- a/README.rst +++ b/README.rst @@ -177,8 +177,12 @@ Tests can now be run using Python's unittest framework:: $ python -m unittest -v +Doctests can be run using the doctest modele:: + + $ python -m doctest -o NORMALIZE_WHITESPACE -f tiledb/libtiledb.pyx + You can also install a symlink named ``site-packages/tiledb.egg-link`` to the development folder of TileDB-Py with:: $ pip install --editable . -This enables local changes to the current development repo to be reflected globally. \ No newline at end of file +This enables local changes to the current development repo to be reflected globally.