mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
ea5345fb58
Former-commit-id: 748ad5ccd948c5e01ca74d3d6e6b9b9b222caa4c [formerly 21bc33262a382d997170a56c87ec76f80c3003f9] [formerly daaece54d0c66f792389f09c77392cfbf4dcb7e2 [formerly e2868cbcf9
]]
Former-commit-id: db41ef6d417de70719788ce7417d3e7e954b0b3a [formerly 7b15cefef372e953d5d3ebefd219365e6edcea2a]
Former-commit-id: ab7314f9f6c302ee4ada247e184f0509e5e0c0d5
24 lines
847 B
YAML
24 lines
847 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 .
|
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
|
- ls dist/
|
|
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|