File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ matrix:
2222 - PYTHON=3.6 PANDAS=0.21.1
2323 - dist : trusty
2424 env :
25- - PYTHON=3.6 PANDAS=0.22
25+ - PYTHON=3.6 PANDAS=0.22 DOCBUILD=true
2626 # In allow failures
2727 - dist : trusty
2828 env :
@@ -60,6 +60,10 @@ install:
6060 else
6161 conda install pandas=$PANDAS;
6262 fi
63+ - if [[ $DOCBUILD ]]; then
64+ conda install sphinx ipython matplotlib;
65+ pip install sphinx_rtd_theme doctr;
66+ fi
6367 - pip install beautifulsoup4
6468 - pip install coveralls --quiet
6569 - conda list
@@ -72,4 +76,16 @@ script:
7276 - flake8 pandas_datareader
7377
7478after_success :
79+ - |
80+ if [[ ${DOCBUILD} ]]; then
81+ cd docs
82+ make html && make html
83+ cd ..
84+ doctr deploy devel --build-tags
85+ if [[ -z ${TRAVIS_TAG} ]]; then
86+ echo "Not a tagged build."
87+ else
88+ doctr deploy doc --build-tags
89+ fi
90+ fi
7591 - coveralls
Original file line number Diff line number Diff line change @@ -71,4 +71,5 @@ Other Changes
7171~~~~~~~~~~~~~
7272- The minimum tested pandas version was increased to 0.19.2 (:issue:`441`).
7373- Added versioneer to simplifying release (:issue:`442`).
74+ - Added doctr to automatically build docs for gh-pages (:issue:`459`).
7475
You can’t perform that action at this time.
0 commit comments