mirror of
https://github.com/asciimoo/wuzz
synced 2024-11-18 15:25:30 +00:00
14 lines
560 B
YAML
14 lines
560 B
YAML
language: go
|
|
go:
|
|
- tip # latest
|
|
env:
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
script:
|
|
- test -z "$(gofmt -l ./)"
|
|
- test -z "$(go vet -v ./...)"
|
|
- go build
|
|
after_success:
|
|
# Publish as pre-release if it isn't a pull request
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then go get github.com/mitchellh/gox && go get github.com/tcnksm/ghr; fi'
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" && ghr --username $GITHUB_USERNAME --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/; fi'
|