hoarder/.travis.yml

16 lines
504 B
YAML
Raw 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-16 21:11:04 -04:00
- DATE=$(date -u '+%Y/%m/%d %H:%M:%S') BUILD_VERSION=$(if [ -n $TRAVIS_TAG ]; then echo -n $TRAVIS_COMMIT; else echo -n $TRAVIS_TAG; fi)
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:
2016-05-16 21:17:15 -04:00
- gox -ldflags "-X 'main.buildVersion=$BUILD_VERSION' -X 'main.buildDate=$DATE'" ./cmd/hoarder
2016-05-16 21:09:00 -04:00
- ghr --username tblyler --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/