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:
22
22
- PYTHON=3.6 PANDAS=0.21.1
23
23
- dist : trusty
24
24
env :
25
- - PYTHON=3.6 PANDAS=0.22
25
+ - PYTHON=3.6 PANDAS=0.22 DOCBUILD=true
26
26
# In allow failures
27
27
- dist : trusty
28
28
env :
@@ -60,6 +60,10 @@ install:
60
60
else
61
61
conda install pandas=$PANDAS;
62
62
fi
63
+ - if [[ $DOCBUILD ]]; then
64
+ conda install sphinx ipython matplotlib;
65
+ pip install sphinx_rtd_theme doctr;
66
+ fi
63
67
- pip install beautifulsoup4
64
68
- pip install coveralls --quiet
65
69
- conda list
@@ -72,4 +76,16 @@ script:
72
76
- flake8 pandas_datareader
73
77
74
78
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
75
91
- coveralls
Original file line number Diff line number Diff line change @@ -71,4 +71,5 @@ Other Changes
71
71
~~~~~~~~~~~~~
72
72
- The minimum tested pandas version was increased to 0.19.2 (:issue:`441`).
73
73
- Added versioneer to simplifying release (:issue:`442`).
74
+ - Added doctr to automatically build docs for gh-pages (:issue:`459`).
74
75
You can’t perform that action at this time.
0 commit comments