test:
    override:
        - bash gofmt.sh
        - go tool vet .
        - case $CIRCLE_NODE_INDEX in 0) go test -timeout 60s -v ./... ;; 1) GORACE="halt_on_error=1" go test -race -timeout 120s -v ./...;; esac:
            parallel: true
machine:
    environment:
      GODIST: "go1.7.1.linux-amd64.tar.gz"

    post:
      - mkdir -p download
      - test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
      - sudo rm -rf /usr/local/go
      - sudo tar -C /usr/local -xzf download/$GODIST

test:
    override:
        - go version
        - bash gofmt.sh
        - go tool vet .
        - case $CIRCLE_NODE_INDEX in 0) go test -timeout 60s -v ./... ;; 1) GORACE="halt_on_error=1" go test -race -timeout 120s -v ./...;; esac:
            parallel: true

Upgrade CircleCI to Go 1.7
Upgrade CircleCI to Go 1.7