Skip to content

Commit 62c688c

Browse files
committed
TST: build html and run doc doctests on travis
Try building html and running documentation doctests on travis, as a separate entry in the build matrix.
1 parent 1219d39 commit 62c688c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ matrix:
2626
- python: 2.7
2727
env:
2828
- DEPENDS="numpy==1.5.1 pydicom==0.9.7"
29+
# Documentation doctests
30+
- python: 2.7
31+
env:
32+
- DEPENDS="numpy scipy matplotlib h5py sphinx"
33+
- DOC_DOC_TEST=1
2934
before_install:
3035
- virtualenv venv
3136
- source venv/bin/activate
@@ -58,6 +63,12 @@ script:
5863
cp ../.coveragerc .;
5964
COVER_ARGS="--with-coverage --cover-package nibabel";
6065
fi
61-
- nosetests --with-doctest $COVER_ARGS nibabel
66+
- if [ "$DOC_DOC_TEST" == "1" ]; then
67+
cd ../doc;
68+
make html;
69+
make doctest;
70+
else
71+
nosetests --with-doctest $COVER_ARGS nibabel;
72+
fi
6273
after_success:
6374
- if [ "${COVERAGE}" == "1" ]; then coveralls; fi

0 commit comments

Comments
 (0)