Update travis script

This commit is contained in:
Yong Wen Chua 2018-07-18 11:05:17 +08:00
parent df4c1f82b8
commit 4d99452435
1 changed files with 16 additions and 13 deletions

View File

@ -1,9 +1,12 @@
sudo: false
language: rust
rust:
- nightly
# Minimum Rust set by Rocket
- nightly-2018-06-22
- nightly
# Minimum Rust set by Rocket
- nightly-2018-06-22
branches:
only:
- master
cache: cargo
env:
global:
@ -19,15 +22,15 @@ addons:
- libelf-dev
- libdw-dev
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# Remove rust-toolchain override for tests
- rm rust-toolchain
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# Remove rust-toolchain override for tests
- rm rust-toolchain
script:
- |
travis-cargo build -- "${CARGO_FLAGS}" &&
travis-cargo test -- "${CARGO_FLAGS}" &&
travis-cargo --only nightly doc -- --no-deps "${CARGO_FLAGS}"
- |
travis-cargo build -- "${CARGO_FLAGS}" &&
travis-cargo test -- "${CARGO_FLAGS}" &&
travis-cargo --only nightly doc -- --no-deps "${CARGO_FLAGS}"
after_success:
- test $CARGO_FLAGS = "--all-features" && travis-cargo --only nightly doc-upload
- test $CARGO_FLAGS = "--all-features" && travis-cargo --only nightly doc-upload