Skip to content

Commit 2b3b5d5

Browse files
committed
publish docs
1 parent 62fdcec commit 2b3b5d5

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.travis.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# http://lint.travis-ci.org/
2+
13
language: python
24

35
sudo: false
@@ -17,6 +19,8 @@ matrix:
1719
env: TEST_TARGET=notebooks
1820
- python: 3.6
1921
env: TEST_TARGET=latest_branca
22+
- python: 3.6
23+
env: TEST_TARGET=docs
2024
allow_failures:
2125
- python: 2.7
2226
env: TEST_TARGET=latest_branca
@@ -36,16 +40,16 @@ before_install:
3640
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
3741
conda install mock ;
3842
fi
39-
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
40-
conda install doctr ;
41-
fi
4243

4344
# Test source distribution.
4445
install:
4546
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
4647

4748
script:
48-
- cp -r tests/ examples/ /tmp && cd /tmp
49+
- if [[ $TEST_TARGET != 'docs' ]]; then
50+
cp -r tests/ examples/ /tmp && cd /tmp ;
51+
fi
52+
4953
- if [[ $TEST_TARGET == 'default' ]]; then
5054
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
5155
fi
@@ -60,3 +64,12 @@ script:
6064
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402,I100 --max-line-length=100 --show-source ; done ;
6165
py.test -vv tests/notebooks/test_notebooks.py ;
6266
fi
67+
68+
- if [[ $TEST_TARGET == 'docs' ]]; then
69+
set -e ;
70+
conda install doctr ;
71+
pushd docs ;
72+
make clean html ;
73+
popd ;
74+
doctr deploy --sync --no-require-master --built-docs docs/_build/html "docs-$TRAVIS_BRANCH";
75+
fi

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ pandas
1919
pillow
2020
pytest
2121
selenium
22+
sphinx
2223
vincent

0 commit comments

Comments
 (0)