language: go

go:
  - 1.x

env:
  - CGO_ENABLED=0

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

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

after_script:
  - golint ./...
