version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.8

    working_directory: /go/src/github.com/palsivertsen/goutils
    steps:
      - checkout
      - run:
        name: Dependencies
        command: |
          curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
          dep ensure

      - run:
        name: Download reporting tool
        command: |
          curl -o ./cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 -L
          chmod u+x ./cc-test-reporter
      - run:
        name: Code coverage
        command: |
          go test -coverprofile=c.out
          ./cc-test-reporter after-build -t gocov

version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.8

    working_directory: /go/src/github.com/palsivertsen/goutils
    steps:
      - checkout
      - run:
          name: Dependencies
          command: |
            curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
            dep ensure

      - run:
          name: Download reporting tool
          command: |
            curl -o ./cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 -L
            chmod u+x ./cc-test-reporter
      - run:
          name: Code coverage
          command: |
            go test -coverprofile=c.out
            ./cc-test-reporter after-build -t gocov

Revert "Circle CI whitespace fix"
Revert "Circle CI whitespace fix"

This reverts commit cfbd7c0f21afe61bd72ad698eeecdd86e546a17c.
