Skip to content

Commit

Permalink
Merge pull request #95 from TileDB-Inc/jcb/doctests
Browse files Browse the repository at this point in the history
Have Travis CI run doctests
  • Loading branch information
Jake Bolewski authored Oct 24, 2018
2 parents 7e1e709 + 6e5ea17 commit 966fa9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
This enables local changes to the current development repo to be reflected globally.

0 comments on commit 966fa9d

Please sign in to comment.