filebrowser/.travis.yml
Henrique Dias 0f7995bbf3 Update .travis.yml
Former-commit-id: 6064db3bd947f06c083f7eb1ad6816466c1571d9 [formerly 884195b10018a7fb4e42ef4cfae38d37b1234ace] [formerly 69a5c8e854ec6d9c384033e2421326190880ce8a [formerly cfa97549b4]]
Former-commit-id: 2071763925ad9b08b2528386e54ffc44bb92ff38 [formerly 7e4fa86c7d6614a7fa9362b9eb3f0062929090e0]
Former-commit-id: 70c64438dac2fe70f8c2eaf0bc1c12b2e9e064c4
2017-07-20 09:13:36 +01:00

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