[skip travis] Only test install when attempting to deploy.

This commit is contained in:
ClementTsang 2020-02-25 22:06:17 -05:00
parent 81653e6000
commit de1648ad75

View File

@ -29,7 +29,6 @@ script:
- cargo clippy -- -D clippy::all - cargo clippy -- -D clippy::all
- cargo build --verbose --target $TARGET - cargo build --verbose --target $TARGET
- cargo test --verbose --target $TARGET - cargo test --verbose --target $TARGET
- cargo install --path . --target $TARGET
# Need to cache the whole `.cargo` directory to keep .crates.toml for cargo-update to work # Need to cache the whole `.cargo` directory to keep .crates.toml for cargo-update to work
cache: cache:
@ -46,6 +45,7 @@ notifications:
on_success: never on_success: never
before_deploy: before_deploy:
- cargo install --path . --target $TARGET
- | - |
if [[ $TRAVIS_OS_NAME == "windows" ]]; then if [[ $TRAVIS_OS_NAME == "windows" ]]; then
choco install zip; choco install zip;