filebrowser/.travis.yml
Henrique Dias fa371ab89b Update .travis.yml
Former-commit-id: 01e7e9522772972a08b8d1fbe6d791550911e54d [formerly 2e07802aa06d0c79c4973d6d029e30cf9b34de19] [formerly a35075b6ca6e9fea8f404198561cba6e17a2b4a7 [formerly 2460463be6]]
Former-commit-id: b078b457e7655c26d3d229e6f7855007ed2efd6f [formerly ef2d4172db5402a4b34ee62fde0572d0e62dda6e]
Former-commit-id: 24ba0d6675d3d7edf81d917040aafbc55af7e0a7
2017-07-20 09:13:08 +01:00

25 lines
862 B
YAML

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 .
- mkdir dist
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
- ls dist/
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/