mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
30 lines
827 B
YAML
30 lines
827 B
YAML
language: go
|
|
|
|
go:
|
|
- tip
|
|
|
|
env:
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
install:
|
|
- go get ./...
|
|
- go get github.com/mitchellh/gox
|
|
- go get github.com/tcnksm/ghr
|
|
# Install gometalinter and certain linters
|
|
- go get github.com/alecthomas/gometalinter
|
|
- go get github.com/client9/misspell/cmd/misspell
|
|
- go get github.com/gordonklaus/ineffassign
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
- go get github.com/tsenart/deadcode
|
|
|
|
script:
|
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --exclude="rice-box.go" --tests ./...
|
|
- go test ./... -timeout 30s
|
|
|
|
after_script:
|
|
- cd cmd/filemanager
|
|
- mkdir dist
|
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
|
- ls dist/
|
|
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|