Travis release

pull/157/head
Henrique Dias 2017-07-20 09:08:17 +01:00
parent 272e2b3c24
commit e2868cbcf9
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 8 additions and 0 deletions

View File

@ -3,13 +3,21 @@ language: go
go:
- tip
env:
- "PATH=/home/travis/gopath/bin:$PATH"
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
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
script:
- sed -i 's/\_ \"github.com\/mholt\/caddy\/caddyhttp\"/\_ \"github.com\/mholt\/caddy\/caddyhttp\"\n\_ \"github.com\/hacdias\/filemanager\/caddy\/filemanager\"/g' $GOPATH/src/github.com/mholt/caddy/caddy/caddymain/run.go
- go build -o binary github.com/mholt/caddy/caddy
- go build github.com/hacdias/filemanager
- ineffassign .
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
- ls dist/
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/