parent
09cba55dc8
commit
33fde259d3
1 changed files with 12 additions and 11 deletions
23
.travis.yml
23
.travis.yml
|
@ -1,5 +1,6 @@
|
||||||
language: rust
|
language: rust
|
||||||
rust: stable
|
rust: stable
|
||||||
|
cache: cargo
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -20,8 +21,8 @@ script:
|
||||||
- cargo test ${TRAVIS_TAG:+--release} --target $TARGET
|
- cargo test ${TRAVIS_TAG:+--release} --target $TARGET
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- strip target/$TARGET/release/http-server
|
- strip "target/$TARGET/release/$PROJECT_NAME"
|
||||||
- zip "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.zip" -j target/$TARGET/release/http-server
|
- zip "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.zip" -j "target/$TARGET/release/$PROJECT_NAME"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
@ -37,12 +38,12 @@ deploy:
|
||||||
condition: $TRAVIS_RUST_VERSION = stable
|
condition: $TRAVIS_RUST_VERSION = stable
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
# Need to cache the whole `.cargo` directory to keep .crates.toml for
|
## Need to cache the whole `.cargo` directory to keep .crates.toml for
|
||||||
# cargo-update to work
|
## cargo-update to work
|
||||||
cache:
|
#cache:
|
||||||
directories:
|
# directories:
|
||||||
- /home/travis/.cargo
|
# - ${TRAVIS_HOME}/.cargo
|
||||||
|
#
|
||||||
# But don't cache the cargo registry
|
## But don't cache the cargo registry
|
||||||
before_cache:
|
#before_cache:
|
||||||
- rm -rf /home/travis/.cargo/registry
|
# - rm -rf ${TRAVIS_HOME}/.cargo/registry
|
||||||
|
|
Loading…
Add table
Reference in a new issue