1dependencies:
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
9test:
10  pre:
11    # run analysis before tests
12    - go vet ./...
13    # set min_confidence > 0.8 to ignore "error strings should not be capitalized or end with punctuation or a newline"
14    - test -z "$(golint -min_confidence 0.81 ./... | tee /dev/stderr)"
15    - test -z "$(gofmt -s -l . | tee /dev/stderr)"
16