summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-02-25 13:39:53 -0500
committerGitHub <noreply@github.com>2020-02-25 13:39:53 -0500
commitc8c925e8d7937de4e6a5328a9c062240ad90b8f0 (patch)
treec4c031e3ac7fb8ba2c5baf584fff3f113581992f
parent997d5635afe74e22ad8eb22363691bc0d376db4c (diff)
Fix windows builds for travis0.2.2
-rw-r--r--.travis.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index fce0ebfe..35303c37 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,16 +47,17 @@ notifications:
before_deploy:
- |
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
+ choco install zip;
rustup target add x86_64-pc-windows-msvc;
cargo build --release --target x86_64-pc-windows-msvc;
- strip ./target/x86_64-pc-windows-msvc/release/btm;
- mv ./target/x86_64-pc-windows-msvc/release/btm ./target/x86_64-pc-windows-msvc/release/btm.exe;
- zip -r bottom_x86_64-pc-windows-msvc.zip ./target/x86_64-pc-windows-msvc/release/btm.exe;
+ strip "./target/x86_64-pc-windows-msvc/release/btm";
+ mv "./target/x86_64-pc-windows-msvc/release/btm" "./target/x86_64-pc-windows-msvc/release/btm.exe";
+ zip bottom_x86_64-pc-windows-msvc.zip "./target/x86_64-pc-windows-msvc/release/btm.exe";
rustup target add i686-pc-windows-msvc;
cargo build --release --target i686-pc-windows-msvc;
- strip ./target/i686-pc-windows-msvc/release/btm;
- mv ./target/i686-pc-windows-msvc/release/btm ./target/i686-pc-windows-msvc/release/btm.exe;
- zip -r bottom_i686-pc-windows-msvc.zip ./target/i686-pc-windows-msvc/release/btm.exe;
+ strip "./target/i686-pc-windows-msvc/release/btm";
+ mv "./target/i686-pc-windows-msvc/release/btm" "./target/i686-pc-windows-msvc/release/btm.exe";
+ zip bottom_i686-pc-windows-msvc.zip "./target/i686-pc-windows-msvc/release/btm.exe";
else
cargo build --release;
cp ./target/release/btm btm;