Skip to content

Commit cf429e5

Browse files
committed
build docs on Travis-CI
1 parent 7eb9914 commit cf429e5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# use http://lint.travis-ci.org/ to check the file.
2+
13
language: python
24

35
sudo: required
@@ -48,6 +50,8 @@ matrix:
4850
env: TEST_TARGET=default
4951
- python: 2.7
5052
env: TEST_TARGET=coding_standards
53+
- python: 3.6
54+
env: TEST_TARGET=docs
5155
allow_failures:
5256
- python: 2.7
5357
env: TEST_TARGET=coding_standards
@@ -89,3 +93,13 @@ script:
8993
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
9094
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
9195
fi
96+
97+
- if [[ $TEST_TARGET == 'docs' ]]; then
98+
set -e ;
99+
conda install doctr ;
100+
pushd docs ;
101+
make clean html linkcheck ;
102+
popd ;
103+
# python -m doctr deploy --sync .;
104+
# python -m doctr deploy --sync --no-require-master --built-docs docs/_build/html "docs-$TRAVIS_BRANCH" ;
105+
fi

0 commit comments

Comments
 (0)