circle.yml 399 B

123456789101112131415
  1. dependencies:
  2. pre:
  3. # setup ipv6
  4. - sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0
  5. post:
  6. # install golint
  7. - go get github.com/golang/lint/golint
  8. test:
  9. pre:
  10. # run analysis before tests
  11. - go vet ./...
  12. - test -z "$(golint ./... | tee /dev/stderr)"
  13. - test -z "$(gofmt -s -l . | tee /dev/stderr)"