From 15296cd8b48072d1bfbeb9651cdc643740b551b5 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 16 Jul 2017 21:32:41 +0200 Subject: Try travis bintray integration (3) --- ci/bintray.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ci') diff --git a/ci/bintray.sh b/ci/bintray.sh index 0d3efa6e..4e43ef3d 100755 --- a/ci/bintray.sh +++ b/ci/bintray.sh @@ -1,7 +1,10 @@ #!/bin/bash +go version |grep go1.8 || exit VERSION=$(git describe --tags) mkdir ci/binaries -go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-$GOOS-$GOARCH +GOOS=windows GOARCH=amd64 go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-win64.exe +GOOS=linux GOARCH=amd64 go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-linux64 +GOOS=linux GOARCH=arm go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-linux-arm cd ci cat > deploy.json < deploy.json <