update travis
Former-commit-id: c09837024a3b87ebc4e86f8867092c2306b11bbd [formerly 9ae31588732c360c15c5d642b3d5c15249461cf1] [formerly 346cc2484d51d0aa935269b92bc7aad49bdb38c7 [formerly 544da63680
]]
Former-commit-id: bc8788569be9b5dadc3980dfcab23fb4fb1a9976 [formerly eceb3272b59026df4e3a1d860465dfda967cae02]
Former-commit-id: 849c1d3bd279d480c649cc5925340b5ff5367a5d
pull/726/head
parent
3acc23cc18
commit
1d6ad8df88
14
.travis.yml
14
.travis.yml
|
@ -7,15 +7,21 @@ env:
|
||||||
- "PATH=/home/travis/gopath/bin:$PATH"
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get -u -v $(go list -f '{{join .Imports "\n"}}' ./... | sort | uniq | grep -v filemanager)
|
- go get ./...
|
||||||
- go get -u -v github.com/mholt/caddy/caddyhttp
|
|
||||||
- go get github.com/gordonklaus/ineffassign
|
|
||||||
- go get github.com/mitchellh/gox
|
- go get github.com/mitchellh/gox
|
||||||
- go get github.com/tcnksm/ghr
|
- 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:
|
script:
|
||||||
- ineffassign .
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests ./...
|
||||||
- go test ./... -timeout 30s -tags
|
- go test ./... -timeout 30s -tags
|
||||||
|
|
||||||
|
after_script:
|
||||||
- cd cmd/filemanager
|
- cd cmd/filemanager
|
||||||
- mkdir dist
|
- mkdir dist
|
||||||
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
||||||
|
|
Loading…
Reference in New Issue