Merge pull request #208 from RustPython/travis-fix

Limit the gh-pages deployment step to only nightly build
This commit is contained in:
Windel Bouwman
2018-12-04 09:01:16 +01:00
committed by GitHub

View File

@@ -9,7 +9,6 @@ rust:
script:
- cargo build --verbose --all
- cargo test --verbose --all
- cargo doc --no-deps --all
env:
# This is used to only capture the regular nightly test in allow_failures
@@ -62,6 +61,15 @@ matrix:
- cargo fmt --all -- --check
env:
- REGULAR_TEST=false
- name: publish documentation
language: rust
rust: nightly
cache: cargo
script:
- cargo doc --no-deps --all
env:
- REGULAR_TEST=false
- PUBLISH_DOC=true
allow_failures:
- rust: nightly
env: REGULAR_TEST=true
@@ -76,3 +84,4 @@ deploy:
keep-history: true
on:
branch: master
condition: $PUBLISH_DOC = true