dependencies:
  pre:
    - go get -v -t -u -f github.com/cee-dub/go-junit-report

test:
  pre:
    - go version
  ## Override test command for reporting
  override:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit
    - "(set -o pipefail && go test ./... -v -race | go-junit-report -dir $CIRCLE_TEST_REPORTS/junit)"

dependencies:
  ## Install specific Go version
  pre:
    - curl -o go.tar.gz -sL https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
    - sudo rm -rf /usr/local/go
    - sudo tar -C /usr/local -xzf go.tar.gz
    - sudo chmod a+w /usr/local/go/src/
    - go get -v -t -u -f github.com/cee-dub/go-junit-report

test:
  pre:
    - go version
  ## Override test command for reporting
  override:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit
    - "(set -o pipefail && go test ./... -v -race | go-junit-report -dir $CIRCLE_TEST_REPORTS/junit)"

Build on a recent version of Go
Build on a recent version of Go
