|
|
|
@ -3,12 +3,8 @@ go:
|
|
|
|
|
- 1.4
|
|
|
|
|
env:
|
|
|
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
|
before_install:
|
|
|
|
|
- go get github.com/mitchellh/gox
|
|
|
|
|
- gox -build-toolchain
|
|
|
|
|
- go get github.com/tcnksm/ghr
|
|
|
|
|
script:
|
|
|
|
|
- go test -v ./...
|
|
|
|
|
after_success:
|
|
|
|
|
- gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
|
|
|
|
|
- ghr --username codeskyblue --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/
|
|
|
|
|
- bash -c "$(curl -fsSL https://raw.githubusercontent.com/codeskyblue/gorelease/master/scripts/build-standalone.sh)" args0 "windows linux darwin"
|
|
|
|
|
- bash -c "$(curl -fsSL https://raw.githubusercontent.com/codeskyblue/gorelease/master/scripts/upload-qiniu.sh)"
|
|
|
|
|