diff --git a/.travis.yml b/.travis.yml index fd6d667..6e911c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,13 +9,24 @@ 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" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" before_install: - go get -u github.com/kardianos/govendor + +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