Skip to content

Commit ed2791e

Browse files
committed
Update travis config to build MkDocs documentation automatically
1 parent ad2338f commit ed2791e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
language: minimal
1+
language: python
2+
3+
python:
4+
- "3.6"
25

36
services:
47
- docker
58

9+
install:
10+
- pip install mkdocs mkdocs-material
11+
612
script:
713
- docker build --target=builder .
814

15+
before_deploy:
16+
- mkdocs build --verbose --clean
17+
918
deploy:
1019
- provider: script
1120
script: tools/cd.sh travis-${TRAVIS_BUILD_NUMBER}
@@ -16,3 +25,10 @@ deploy:
1625
script: tools/cd.sh ${TRAVIS_TAG}
1726
on:
1827
tags: true
28+
29+
- provider: pages
30+
skip_cleanup: true
31+
github_token: $GITHUB_TOKEN
32+
local_dir: site
33+
on:
34+
branch: master

0 commit comments

Comments
 (0)