language: go

go:
  - 1.x

env:
  - CGO_ENABLED=0

install:
  - go get -t ./...
  - go get golang.org/x/lint/golint
  - go get github.com/gordonklaus/ineffassign

script:
  - diff <(echo -n) <(gofmt -s -d .)
  - ineffassign .
  - go vet ./...
  - go test ./...

after_script:
  - golint ./...
