language: go

go:
  - 1.5
  - 1.6
  - 1.7
  - 1.8
  - 1.9
  - tip

before_install:
  - go get golang.org/x/tools/cmd/cover

script:
  - GOARCH=386 go test # test 32bit architectures.
  - go test -coverprofile=coverage.txt -covermode=atomic

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

sudo: false
