Skip cross-compilation on master

This commit is contained in:
Zellyn Hunter 2016-11-13 23:16:03 -05:00
parent 58a2726f1c
commit 0c5c863c01

View File

@ -15,7 +15,8 @@ deploy:
tags: true tags: true
after_success: after_success:
# Cross-compile tagged releases. # Cross-compile tagged releases.
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then if [ ! -z "$TRAVIS_TAG" ]; then
echo 'Cross-compiling';
go get github.com/inconshreveable/mousetrap; go get github.com/inconshreveable/mousetrap;
mkdir -p release; mkdir -p release;
GOOS=linux GOARCH=amd64 go build -o release/diskii-linux-amd64; GOOS=linux GOARCH=amd64 go build -o release/diskii-linux-amd64;