mirror of
https://github.com/hacdias/webdav.git
synced 2024-04-21 12:32:06 +00:00
20 lines
512 B
YAML
20 lines
512 B
YAML
language: go
|
|
|
|
go: 1.12.x
|
|
|
|
env:
|
|
- "PATH=/home/travis/gopath/bin:$PATH GO111MODULE=on"
|
|
|
|
install:
|
|
- go get ./...
|
|
# Install gometalinter and certain linters
|
|
- env GO111MODULE=off go get github.com/alecthomas/gometalinter
|
|
- env GO111MODULE=off gometalinter --install
|
|
|
|
script:
|
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests ./...
|
|
- go test ./... -timeout 30s
|
|
|
|
after_success:
|
|
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
|