hoarder/.travis.yml

16 lines
588 B
YAML
Raw Permalink Normal View History

2016-05-13 18:14:25 -04:00
language: go
go:
- 1.6
2016-05-16 20:55:31 -04:00
2016-05-16 21:09:00 -04:00
env:
2016-05-17 11:50:55 -04:00
- DATE=$(date '+%s')
2016-05-16 21:09:00 -04:00
2016-05-16 20:55:31 -04:00
before_install:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
after_success:
- "[ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ] && gox -ldflags \"-X 'main.buildVersion=${BUILD_VERSION} (${TRAVIS_COMMIT})' -X 'main.buildDate=${DATE}'\" -output \"dist/hoarder_{{.OS}}_{{.Arch}}\" ./cmd/hoarder || false"
2016-05-17 11:50:55 -04:00
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username tblyler --token "${GITHUB_TOKEN}" --replace --prerelease --debug "${TRAVIS_BRANCH}-prerelease" dist/ || false'