Skip to content

Commit a8fb2f3

Browse files
Merge pull request RustPython#204 from RustPython/travis-doc
Auto build and deploy documentation to website repo
2 parents 083eb97 + 023e611 commit a8fb2f3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ rust:
99
script:
1010
- cargo build --verbose --all
1111
- cargo test --verbose --all
12+
- cargo doc --no-deps --all
1213

1314
env:
1415
# This is used to only capture the regular nightly test in allow_failures
@@ -64,3 +65,13 @@ matrix:
6465
allow_failures:
6566
- rust: nightly
6667
env: REGULAR_TEST=true
68+
69+
deploy:
70+
provider: pages
71+
repo: RustPython/website
72+
local-dir: target/doc
73+
skip-cleanup: true
74+
github-token: $WEBSITE_GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
75+
keep-history: true
76+
on:
77+
branch: master

0 commit comments

Comments
 (0)