filebrowser/.travis.yml
Henrique Dias c191399e3a Make this pass
Former-commit-id: 84f55970fbdce78a88b5673c9846a3555e787f90 [formerly 729dfe313c7ca0b65b65292940406c84fc51ba73] [formerly 123853c9b45502296f701c57f3aa35d119a7f213 [formerly 91a8fd3a012e3cb9894a7ae8ab6123431a6de67c]]
Former-commit-id: 617ac5654d6a35603493fe9c0391abad39bd5eff [formerly d2c9107a91d36c950b5fe9118962a10f10fa7fcb]
Former-commit-id: ec577996562bb75568c3da5a70200537ddce0bc8
2017-07-25 12:33:47 +01:00

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/