Skip to content

Commit dcc09eb

Browse files
authored
Merge pull request #459 from bashtage/add-doc-build
ENH: Add automatic doc build
2 parents 4a1c20d + 371d400 commit dcc09eb

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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

7478
after_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

docs/source/whatsnew/v0.6.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)