language: go

go:
  - "1.10.x"
  - "1.11.x"
  - "1.12.x"

script:
  - go get github.com/golang/dep/cmd/dep github.com/stretchr/testify
  - dep ensure -v -vendor-only
  - go test ./gojay/codegen/test/... -race
  - go test -race -coverprofile=coverage.txt -covermode=atomic

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