update travis setup
only make release builds on tags, but don't build twice
This commit is contained in:
parent
3f871d1779
commit
595ebed94d
1 changed files with 2 additions and 4 deletions
|
@ -15,13 +15,11 @@ matrix:
|
|||
- os: windows
|
||||
env: TARGET=x86_64-pc-windows-msvc
|
||||
|
||||
|
||||
script:
|
||||
- cargo build --target $TARGET
|
||||
- cargo test --target $TARGET
|
||||
- cargo build ${TRAVIS_TAG:+--release} --target $TARGET
|
||||
- cargo test ${TRAVIS_TAG:+--release} --target $TARGET
|
||||
|
||||
before_deploy:
|
||||
- cargo build --release --target $TARGET
|
||||
- strip target/$TARGET/release/http-server
|
||||
- zip "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.zip" -j target/$TARGET/release/http-server
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue