update travis setup

only make release builds on tags, but don't build twice
This commit is contained in:
Дамјан Георгиевски 2018-10-20 17:19:41 +02:00
parent 3f871d1779
commit 595ebed94d

View file

@ -15,13 +15,11 @@ matrix:
- os: windows - os: windows
env: TARGET=x86_64-pc-windows-msvc env: TARGET=x86_64-pc-windows-msvc
script: script:
- cargo build --target $TARGET - cargo build ${TRAVIS_TAG:+--release} --target $TARGET
- cargo test --target $TARGET - cargo test ${TRAVIS_TAG:+--release} --target $TARGET
before_deploy: before_deploy:
- cargo build --release --target $TARGET
- strip target/$TARGET/release/http-server - strip target/$TARGET/release/http-server
- zip "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.zip" -j target/$TARGET/release/http-server - zip "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.zip" -j target/$TARGET/release/http-server