language: go

go:
  - 1.12.x

env:
  - GO111MODULE=on

install:
  - go mod download
  - go get github.com/awalterschulze/goderive
  - go get github.com/mattn/goveralls
  - go get golang.org/x/lint/golint

script:
  - go test -covermode=count -coverprofile=coverage.out ./...
  - test -z "$(go fmt ./...)"
  - go generate ./...
  - go vet ./...
  - golint ./...
  - if [ -n "$COVERALLS_TOKEN" ]; then goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi

services:
  - docker

sudo: false

language: go

go:
  - 1.12.x

env:
  - GO111MODULE=on

install:
  - go mod download
  - GO111MODULE=off go get github.com/awalterschulze/goderive
  - GO111MODULE=off go get github.com/golangci/golangci-lint/cmd/golangci-lint
  - GO111MODULE=off go get github.com/mattn/goveralls

script:
  - go test -covermode=count -coverprofile=coverage.out ./...
  - test -z "$(go fmt ./...)"
  - go generate ./...
  - go vet ./...
  - golangci-lint run
  - if [ -n "$COVERALLS_TOKEN" ]; then goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi

services:
  - docker

sudo: false

Use golangci-lint and tidy up tool installation
Use golangci-lint and tidy up tool installation
