Skip to content

Commit

Permalink
ENH: Add automatic doc build
Browse files Browse the repository at this point in the history
Add automatic docbuild and push to gh-pages
  • Loading branch information
bashtage committed Jan 19, 2018
1 parent 4a1c20d commit 371d400
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions docs/source/whatsnew/v0.6.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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`).

0 comments on commit 371d400

Please sign in to comment.