From 1d6ad8df886e90b92d00c62f3b24864c4fe2fe6f Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 25 Jul 2017 12:11:03 +0100 Subject: [PATCH] update travis Former-commit-id: c09837024a3b87ebc4e86f8867092c2306b11bbd [formerly 9ae31588732c360c15c5d642b3d5c15249461cf1] [formerly 346cc2484d51d0aa935269b92bc7aad49bdb38c7 [formerly 544da63680d8e7eee1c661c2020546f48e6a2181]] Former-commit-id: bc8788569be9b5dadc3980dfcab23fb4fb1a9976 [formerly eceb3272b59026df4e3a1d860465dfda967cae02] Former-commit-id: 849c1d3bd279d480c649cc5925340b5ff5367a5d --- .travis.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d4196eec..e1cad13b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,15 +7,21 @@ env: - "PATH=/home/travis/gopath/bin:$PATH" install: - - go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v filemanager) - - go get -u -v github.com/mholt/caddy/caddyhttp - - go get github.com/gordonklaus/ineffassign + - 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: - - ineffassign . + - gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests ./... - go test ./... -timeout 30s -tags + +after_script: - cd cmd/filemanager - mkdir dist - gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"