2017-06-25 08:59:08 +00:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
|
|
|
- tip
|
|
|
|
|
2017-07-20 08:08:17 +00:00
|
|
|
env:
|
|
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
|
2017-06-25 08:59:08 +00: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 08:08:17 +00:00
|
|
|
- go get github.com/mitchellh/gox
|
|
|
|
- go get github.com/tcnksm/ghr
|
2017-06-25 08:59:08 +00:00
|
|
|
|
|
|
|
script:
|
2017-07-01 07:36:28 +00:00
|
|
|
- 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
|
2017-06-26 14:59:21 +00:00
|
|
|
- go build -o binary github.com/mholt/caddy/caddy
|
2017-07-01 07:36:28 +00:00
|
|
|
- go build github.com/hacdias/filemanager
|
|
|
|
- ineffassign .
|
2017-07-20 08:08:17 +00:00
|
|
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
|
|
|
- ls dist/
|
|
|
|
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|