sudo: false
language: go

os:
- linux

env:
- ARCH=x86_64

go:
- 1.9.1

script:
- make test GOFLAGS="-race"
- make coverage
- diff -au <(gofmt -d *.go) <(printf "")
- diff -au <(gofmt -d cmd) <(printf "")
- diff -au <(gofmt -d pkg) <(printf "")

after_success:
- bash <(curl -s https://codecov.io/bash)
