2017-06-25 08:59:08 +00:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2017-07-29 14:47:01 +00:00
|
|
|
- 1.8.3
|
2017-06-25 08:59:08 +00:00
|
|
|
- tip
|
|
|
|
|
2017-07-29 14:47:01 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
|
|
|
fast_finish: true
|
|
|
|
|
2017-07-20 08:08:17 +00:00
|
|
|
env:
|
|
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
|
2017-06-25 08:59:08 +00:00
|
|
|
install:
|
2017-07-25 11:11:03 +00:00
|
|
|
- go get ./...
|
2017-07-20 08:08:17 +00:00
|
|
|
- go get github.com/mitchellh/gox
|
2017-07-25 11:11:03 +00:00
|
|
|
# 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
|
2017-06-25 08:59:08 +00:00
|
|
|
|
|
|
|
script:
|
2017-07-25 11:25:15 +00:00
|
|
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --exclude="rice-box.go" --tests ./...
|
2017-07-25 11:33:47 +00:00
|
|
|
- go test ./... -timeout 30s
|
2017-07-27 07:12:02 +00:00
|
|
|
|
|
|
|
before_deploy:
|
2017-07-20 08:13:36 +00:00
|
|
|
- cd cmd/filemanager
|
2017-07-20 08:13:08 +00:00
|
|
|
- mkdir dist
|
2017-07-20 08:08:17 +00:00
|
|
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
2017-07-26 08:05:41 +00:00
|
|
|
|
|
|
|
deploy:
|
2017-07-27 17:15:51 +00:00
|
|
|
provider: releases
|
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
file_glob: true
|
|
|
|
file: dist/*
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|