filebrowser/.travis.yml
Henrique Dias 986a8f5c4d update fm
Former-commit-id: bb4394abc0de7f1839bfa4fb8e1e284100d70c7b [formerly 40619e20666287fd4aef974b59781e35a21d08c8] [formerly 9594a148a00627d1813f921f1142ac3a6b4c2bc5 [formerly a890e0abe37a977c8846d92c1a25ecba56c4fb36]]
Former-commit-id: 60e20f7c516df00c5b099e10fe0e8c4cabe4759e [formerly 94c8dc6e3bb8d9e13cbae2baf610257ccdf9e4ff]
Former-commit-id: af8cda59143aa686c9e4754c7ece5365b1183c13
2017-07-26 18:33:51 +01:00

37 lines
942 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
- cd cmd/filemanager
- mkdir dist
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
- ls dist/
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/*
skip_cleanup: true
on:
tags: true