From 0be036bf3615f39d06db420aafa4f4d2bdaa02fe Mon Sep 17 00:00:00 2001 From: Kirill Merkushev Date: Fri, 5 May 2017 01:25:54 +0300 Subject: [PATCH 1/4] autoupload to gh releases --- .travis.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fd6d667..699aef8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,13 +9,25 @@ services: script: - go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg . - - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build + - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build + - gox -os "linux darwin windows" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" before_install: - go get -u github.com/kardianos/govendor - govendor sync + +install: + - govendor sync + - go get -u github.com/mitchellh/gox # cross compile deploy: + - provider: releases + api-key: $GITHUB_TOKEN + file_glob: true + file: dist/* + skip_cleanup: true + on: + tags: true - provider: script script: travis/docker-push.sh latest skip_cleanup: true From b088a96f5eb18883aaa87d749d3adb16408e1369 Mon Sep 17 00:00:00 2001 From: Kirill Merkushev Date: Fri, 5 May 2017 01:27:02 +0300 Subject: [PATCH 2/4] Update .travis.yml --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 699aef8..011ea9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ script: before_install: - go get -u github.com/kardianos/govendor - - govendor sync install: - govendor sync From 20c8eb8d30ebbe8aee38370cd2f6647864ee6108 Mon Sep 17 00:00:00 2001 From: Kirill Merkushev Date: Fri, 5 May 2017 11:16:12 +0300 Subject: [PATCH 3/4] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 011ea9c..6fc25a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ services: script: - go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg . - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build - - gox -os "linux darwin windows" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" + - gox -os "linux darwin windows" -arch "amd64" -osarch="windows/386" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" before_install: - go get -u github.com/kardianos/govendor From 9d65ace41bcc47b9451da7dc3d472d0a98be67e7 Mon Sep 17 00:00:00 2001 From: Kirill Merkushev Date: Fri, 5 May 2017 11:50:20 +0300 Subject: [PATCH 4/4] without win binaries --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6fc25a8..6e911c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ services: script: - go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg . - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build - - gox -os "linux darwin windows" -arch "amd64" -osarch="windows/386" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" + - gox -os "linux darwin" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" before_install: - go get -u github.com/kardianos/govendor