diff --git a/.travis.yml b/.travis.yml index be22af53..d38df997 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ matrix: - PYTHON=3.6 PANDAS=0.21.1 - dist: trusty env: - - PYTHON=3.6 PANDAS=0.22 + - PYTHON=3.6 PANDAS=0.22 DOCBUILD=true # In allow failures - dist: trusty env: @@ -60,6 +60,10 @@ install: else conda install pandas=$PANDAS; fi + - if [[ $DOCBUILD ]]; then + conda install sphinx ipython matplotlib; + pip install sphinx_rtd_theme doctr; + fi - pip install beautifulsoup4 - pip install coveralls --quiet - conda list @@ -72,4 +76,16 @@ script: - flake8 pandas_datareader after_success: + - | + if [[ ${DOCBUILD} ]]; then + cd docs + make html && make html + cd .. + doctr deploy devel --build-tags + if [[ -z ${TRAVIS_TAG} ]]; then + echo "Not a tagged build." + else + doctr deploy doc --build-tags + fi + fi - coveralls diff --git a/docs/source/whatsnew/v0.6.0.txt b/docs/source/whatsnew/v0.6.0.txt index 95c33ee9..00108768 100644 --- a/docs/source/whatsnew/v0.6.0.txt +++ b/docs/source/whatsnew/v0.6.0.txt @@ -71,4 +71,5 @@ Other Changes ~~~~~~~~~~~~~ - The minimum tested pandas version was increased to 0.19.2 (:issue:`441`). - Added versioneer to simplifying release (:issue:`442`). +- Added doctr to automatically build docs for gh-pages (:issue:`459`).