Skip to content

Commit

Permalink
update travis setup
Browse files Browse the repository at this point in the history
only make release builds on tags, but don't build twice
  • Loading branch information
gdamjan committed Oct 20, 2018
1 parent 3f871d1 commit 595ebed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 595ebed

Please sign in to comment.