From 371d4002d5b8f77494326b5803916944215f8018 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Fri, 19 Jan 2018 10:59:09 +0000 Subject: [PATCH] ENH: Add automatic doc build Add automatic docbuild and push to gh-pages --- .travis.yml | 18 +++++++++++++++++- docs/source/whatsnew/v0.6.0.txt | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) 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`).