filebrowser/.travis.yml
Henrique Dias ea2cc50a3f Update .travis.yml
Former-commit-id: 182cf6259d751c0065b12d9a4fec70bbccdef984 [formerly 469e198868e61a6356febe8f897d7ac40499f635] [formerly 30f788591952eb073da71f4660e7fe4b66327796 [formerly 9ca6ef1f3e]]
Former-commit-id: 5b39e4efa51d40273a5c03b7c84d28c4cec24c71 [formerly ab996ead9b59e6bfed5e7f340ece411a8c3e3af0]
Former-commit-id: 0d14515f250e54e4f686303e42b953965f509015
2017-07-29 15:47:01 +01:00

42 lines
890 B
YAML

language: go
go:
- 1.8.3
- tip
matrix:
allow_failures:
- go: tip
fast_finish: true
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