Attempt to fix conditional build in travis.yml

This commit is contained in:
Zellyn Hunter 2016-11-13 23:11:01 -05:00
parent 4ff0871810
commit 58a2726f1c

View File

@ -16,9 +16,9 @@ deploy:
after_success:
# Cross-compile tagged releases.
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
go get github.com/inconshreveable/mousetrap
mkdir -p release
GOOS=linux GOARCH=amd64 go build -o release/diskii-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o release/diskii-macos-amd64
GOOS=windows GOARCH=amd64 go build -o release/diskii-windows-amd64.exe
go get github.com/inconshreveable/mousetrap;
mkdir -p release;
GOOS=linux GOARCH=amd64 go build -o release/diskii-linux-amd64;
GOOS=darwin GOARCH=amd64 go build -o release/diskii-macos-amd64;
GOOS=windows GOARCH=amd64 go build -o release/diskii-windows-amd64.exe;
fi