dist: xenial
language: go
go: "1.13.x"
env:
  - GO111MODULE=on
cache:
  directories:
    - $GOPATH/pkg/mod
    - $HOME/.cache/go-build
install: true
before_script:
- GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
script:
- golangci-lint run
- go test -race ./...
deploy:
- provider: script
  skip_cleanup: true
  script: curl -sL https://git.io/goreleaser | bash
  on:
    tags: true
    condition: $TRAVIS_OS_NAME = linux

dist: xenial
language: go
go: "1.13.x"
env:
  - GO111MODULE=on
cache:
  directories:
    - $GOPATH/pkg/mod
    - $HOME/.cache/go-build
install: true
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
script:
- golangci-lint run
- go test -race ./...
deploy:
- provider: script
  skip_cleanup: true
  script: curl -sL https://git.io/goreleaser | bash
  on:
    tags: true
    condition: $TRAVIS_OS_NAME = linux

Revert "install golangci-lint from source for go 1.13"
Revert "install golangci-lint from source for go 1.13"

This reverts commit d4a2971b6cbce4a538646230c986770c2238e66b.
