aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 8d10a43f0..ebff7d8b0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,12 +12,15 @@ build: &rust_build
12 - rustup component add rust-src 12 - rustup component add rust-src
13 - cargo test --no-run # let's measure compile time separately 13 - cargo test --no-run # let's measure compile time separately
14 - cargo test 14 - cargo test
15 - cargo doc --all --no-deps
15 env: 16 env:
16 - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0 17 - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
17 18
18matrix: 19matrix:
19 include: 20 include:
20 - os: linux 21 - os: linux
22 before_script:
23 - DEPLOY_DOCS=1
21 <<: *rust_build 24 <<: *rust_build
22 - language: node_js 25 - language: node_js
23 node_js: node 26 node_js: node
@@ -43,3 +46,14 @@ branches:
43 - staging 46 - staging
44 - master 47 - master
45 - trying 48 - trying
49
50deploy:
51 provider: pages
52 skip-cleanup: true
53 github-token: $DOCS_TOKEN # Set in the settings page of your repository, as a secure variable
54 keep-history: true
55 local-dir: target/doc
56 branch: gh-pages
57 on:
58 branch: master
59 condition: $DEPLOY_DOCS = 1