sudo: required
dist: trusty
language: go

os:
- linux

go:
- tip
- 1.12.x

env:
- ARCH=x86_64
- ARCH=i686

matrix:
  fast_finish: true
  allow_failures:
  - go: tip

script:
- diff -au <(gofmt -d .) <(printf "")
- go test -race -v ./...
- go vet -asmdecl .
- ./test-architectures.sh
