version: 2

jobs:
  test:
    docker:
      - image: circleci/golang:1.12
        environment:
          GO111MODULE: 'on'
          GOPROXY: https://proxy.golang.org
    steps:
      - checkout
      - run: git submodule sync
      - run: git submodule update --init
      - run: go test -race -v ./...

workflows:
  version: 2
  test:
    jobs:
      - test

version: 2

jobs:
  test:
    docker:
      - image: circleci/golang:1.12
        environment:
          GO111MODULE: 'on'
          GOPROXY: https://proxy.golang.org
    steps:
      - checkout
      - run: git submodule sync
      - run: git submodule update --init
      - run:
          command: go test -race -v ./...
          no_output_timeout: 20m

workflows:
  version: 2
  test:
    jobs:
      - test

Extend CI no output timeout
Extend CI no output timeout

This prevents spurious failures caused by CircleCI cutting off the build
when it goes too long without output, which happens sometimes since the
tests don't output anything until they've been completed.
