Travis release
parent
272e2b3c24
commit
e2868cbcf9
|
@ -3,13 +3,21 @@ language: go
|
||||||
go:
|
go:
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
|
env:
|
||||||
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v filemanager)
|
- 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 -u -v github.com/mholt/caddy/caddyhttp
|
||||||
- go get github.com/gordonklaus/ineffassign
|
- go get github.com/gordonklaus/ineffassign
|
||||||
|
- go get github.com/mitchellh/gox
|
||||||
|
- go get github.com/tcnksm/ghr
|
||||||
|
|
||||||
script:
|
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
|
- 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 -o binary github.com/mholt/caddy/caddy
|
||||||
- go build github.com/hacdias/filemanager
|
- go build github.com/hacdias/filemanager
|
||||||
- ineffassign .
|
- ineffassign .
|
||||||
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
||||||
|
- ls dist/
|
||||||
|
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|
||||||
|
|
Loading…
Reference in New Issue