---
  language: go
  sudo: false
  go:
    - 1.12.x
  install:
    - go get github.com/golang/lint/golint
  script:
    - make binary
    - go vet $(go list ./... | grep -v vendor)
    - test -z "$(golint ./... | grep -v vendor | tee /dev/stderr)"
    - test -z "$(gofmt -s -l . | grep -v vendor | tee /dev/stderr)"
    - go test $(go list ./... | grep -v vendor)

---
  language: go
  sudo: false
  go:
    - 1.12.x
  install:
    - go get golang.org/x/lint/golint
  script:
    - export GO111MODULE=on
    - export GOFLAGS=-mod=vendor
    - go mod verify | grep "all modules verified"
    - make binary
    - go vet $(go list ./... | grep -v vendor)
    - test -z "$(golint ./... | grep -v vendor | tee /dev/stderr)"
    - test -z "$(gofmt -s -l . | grep -v vendor | tee /dev/stderr)"
    - go test $(go list ./... | grep -v vendor)

Add verification that go.mod is correct to CI
Add verification that go.mod is correct to CI

Verify the go.mod content given still using `vndr` for adding/changing
vendoring in the project.

Signed-off-by: Phil Estes <dbac1f450dc8326caa7ba104b384a0eca642250c@gmail.com>
