mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
afb10cc02c
Former-commit-id: 2585617bb0654bb6cfc32b7a64ebc8bf9a576ff0 [formerly 03a73d6f0ed0118e205e50ecab8d3bfc31a655b5] [formerly dddf658817bc25630be32647248d5e5533bcbc33 [formerly dac92eec8b
]]
Former-commit-id: 77f85c483bf64ddc36013dd474100d459a6d599e [formerly ee7c07d1532d9bbd4c2d8e1428bb8a909f1f90b0]
Former-commit-id: b5b9dafcecc6990c70dfa0fffa071698736106b8
36 lines
819 B
YAML
36 lines
819 B
YAML
language: go
|
|
|
|
go:
|
|
- tip
|
|
|
|
env:
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
install:
|
|
- go get ./...
|
|
- go get github.com/mitchellh/gox
|
|
# 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
|
|
|
|
before_deploy:
|
|
- cd cmd/filemanager
|
|
- mkdir dist
|
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: $GITHUB_TOKEN
|
|
file_glob: true
|
|
file: dist/*
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|