language: go
sudo: required

go:
  - 1.9
  - master

before_script:
  # We don't want to run the demo set test with race condition testing.
  # The demo set is large and race tests take a lot longer
  - race_tests=$(go test -list . | grep -v "TestDemoSet\|Benchmark" | head -n -1 | awk -vORS=\| '{ print $1 }' | sed 's/|$/\n/')

script:
  # Run race tests
  - go test -v -race -run "$race_tests" -timeout 15m
  # We run all tests again to get full coverage, technically unncecessary tho
  - go test -v -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v msg | awk -vORS=, '{ print $1 }' | sed 's/,$/\n/') -timeout 30m

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

language: go
sudo: required

go:
  - 1.9.x
  - stable
  - master

before_script:
  # We don't want to run the demo set test with race condition testing.
  # The demo set is large and race tests take a lot longer
  - race_tests=$(go test -list . | grep -v "TestDemoSet\|Benchmark" | head -n -1 | awk -vORS=\| '{ print $1 }' | sed 's/|$/\n/')

script:
  # Run race tests
  - go test -v -race -run "$race_tests" -timeout 15m
  # We run all tests again to get full coverage, technically unncecessary tho
  - go test -v -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v msg | awk -vORS=, '{ print $1 }' | sed 's/,$/\n/') -timeout 30m

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

Change Go versions for Travis CI (stable & 1.9.x)
Change Go versions for Travis CI (stable & 1.9.x)

1.9.x instead of 1.9 - this will take the newest patch
stable should take the newest released version
- at least once travis-ci/gimme#112 is deployed
