Update travis build config
This commit is contained in:
parent
8f1aa0651c
commit
cb13f6073b
1 changed files with 9 additions and 1 deletions
10
.travis.yml
10
.travis.yml
|
@ -2,4 +2,12 @@ language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.6
|
- 1.6
|
||||||
- tip
|
|
||||||
|
before_install:
|
||||||
|
- go get github.com/mitchellh/gox
|
||||||
|
- gox -build-toolchain
|
||||||
|
- go get github.com/tcnksm/ghr
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- gox -ldflags "-X 'main.buildVersion=$(if [ -n $TRAVIS_TAG ]; then echo -n $TRAVIS_COMMIT; else echo -n $TRAVIS_TAG; fi)' -X 'main.buildDate=$(date -u +%Y/%m/%d %H:%M:%S)'"
|
||||||
|
- ghr -u tblyler -r $TRAVIS_REPO_SLUG --token $GITHUB_TOKEN --replace dist/
|
||||||
|
|
Loading…
Reference in a new issue