version: 2
jobs:
  build:
    working_directory: /go/src/github.com/domainr/whois
    docker:
      - image: domainr/ci:latest
    steps:
      - checkout
      - run:
          name: go get
          command: go get -t -d -v ./...
      - run:
          name: go build
          command: go build -v
      - run: mkdir -p ~/junit
      - run:
          name: Run unit tests
          command: (set -o pipefail && go test -v ./... -race | go-junit-report > ~/junit/whois.xml)
      - store_test_results:
          path: ~/junit
      - store_artifacts:
          path: ~/junit

version: 2
jobs:
  build:
    working_directory: /go/src/github.com/domainr/whois
    docker:
      - image: domainr/ci:latest
    steps:
      - checkout
      - run:
          name: go get
          command: go get -t -d -v ./...
      - run:
          name: go build
          command: go build -v

      # Run Tests
      - run: mkdir -p /tmp/test-results
      - run:
          name: Run Tests
          command: |
            trap "go-junit-report < ${TEST_RESULTS}/go-test.log > ${TEST_RESULTS}/go-test-report.xml" EXIT
            go test -v -race ./... | tee ${TEST_RESULTS}/go-test.log

      # Report
      - store_test_results:
          path: /tmp/test-results
      - store_artifacts:
          path: /tmp/test-results
          destination: results

Update CI test run to mustang style
Update CI test run to mustang style
