2017-06-25 16:59:08 +08:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
|
|
|
- tip
|
|
|
|
|
2017-07-20 16:08:17 +08:00
|
|
|
env:
|
|
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
|
2017-06-25 16:59:08 +08:00
|
|
|
install:
|
|
|
|
- go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v filemanager)
|
|
|
|
- go get -u -v github.com/mholt/caddy/caddyhttp
|
|
|
|
- go get github.com/gordonklaus/ineffassign
|
2017-07-20 16:08:17 +08:00
|
|
|
- go get github.com/mitchellh/gox
|
|
|
|
- go get github.com/tcnksm/ghr
|
2017-06-25 16:59:08 +08:00
|
|
|
|
|
|
|
script:
|
2017-07-01 15:36:28 +08:00
|
|
|
- ineffassign .
|
2017-07-25 19:02:51 +08:00
|
|
|
- go test ./... -timeout 30s -tags
|
2017-07-20 16:13:36 +08:00
|
|
|
- cd cmd/filemanager
|
2017-07-20 16:13:08 +08:00
|
|
|
- mkdir dist
|
2017-07-20 16:08:17 +08:00
|
|
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
|
|
|
- ls dist/
|
|
|
|
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|