From 022d88cf4ce786642548d05e16a5a72b4970b110 Mon Sep 17 00:00:00 2001 From: robojumper Date: Sat, 23 Mar 2019 20:43:38 +0100 Subject: Add docs build --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.travis.yml') 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 - rustup component add rust-src - cargo test --no-run # let's measure compile time separately - cargo test + - cargo doc --all --no-deps env: - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0 matrix: include: - os: linux + before_script: + - DEPLOY_DOCS=1 <<: *rust_build - language: node_js node_js: node @@ -43,3 +46,14 @@ branches: - staging - master - trying + +deploy: + provider: pages + skip-cleanup: true + github-token: $DOCS_TOKEN # Set in the settings page of your repository, as a secure variable + keep-history: true + local-dir: target/doc + branch: gh-pages + on: + branch: master + condition: $DEPLOY_DOCS = 1 -- cgit v1.2.3