version: 2

jobs:
  build:
    docker:
      - image: circleci/golang:1.11

    environment:
      TEST_REPORT_PATH: /tmp/test-results

    steps:
      - checkout
      - run: mkdir -p $TEST_REPORT_PATH
      - run: make setup
      - run: make dist
      - run:
          name: Run linter
          command: make lint
      - run:
          name: Run unit tests
          command: make test

      - store_artifacts:
          path: /tmp/test-results
          destination: raw-test-output

      - store_test_results:
          path: /tmp/test-results

version: 2

jobs:
  build:
    docker:
      - image: circleci/golang:1.11rc2

    environment:
      TEST_REPORT_PATH: /tmp/test-results

    steps:
      - checkout
      - run: mkdir -p $TEST_REPORT_PATH
      - run: make setup
      - run: make dist
      - run:
          name: Run linter
          command: make lint
      - run:
          name: Run unit tests
          command: make test

      - store_artifacts:
          path: /tmp/test-results
          destination: raw-test-output

      - store_test_results:
          path: /tmp/test-results

Use circleci/golang:1.11rc2 until 1.11 is available
Use circleci/golang:1.11rc2 until 1.11 is available
