Skip to content

Commit 7467e61

Browse files
committed
Update travis config to build MkDocs documentation automatically
1 parent c0d1fc3 commit 7467e61

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
language: minimal
22

3+
python: "3.6"
4+
35
services:
46
- docker
57

8+
install:
9+
- pip install mkdocs mkdocs-material
10+
611
script:
712
- docker build --target=builder .
813

14+
before_deploy:
15+
- mkdocs build --verbose --clean
16+
917
deploy:
1018
- provider: script
1119
script: tools/cd.sh travis-${TRAVIS_BUILD_NUMBER}
@@ -16,3 +24,10 @@ deploy:
1624
script: tools/cd.sh ${TRAVIS_TAG}
1725
on:
1826
tags: true
27+
28+
- provider: pages
29+
skip_cleanup: true
30+
github_token: $GITHUB_TOKEN
31+
local_dir: site
32+
on:
33+
branch: master

0 commit comments

Comments
 (0)