diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..70dad95 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +sudo: required +language: go + +go: + - 1.10.x + +script: + - gox -os "linux" -arch "386 amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X main.buildStamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.gitRevision=`git describe --tags || git rev-parse HEAD` -s -w" + +install: + - go get -u github.com/mitchellh/gox + +deploy: + - provider: releases + api-key: $GITHUB_TOKEN + file_glob: true + file: dist/* + skip_cleanup: true + on: + tags: true