version: 2
jobs:
  build:
    docker:
      - image: golang
    working_directory: /go/src/github.com/cloe-lang/cloe
    steps:
      - checkout

      - run:
          name: OS Setup
          command: |
            apt -y update --fix-missing
            apt -y install rake bundler

      - run:
          name: Dependencies
          command: rake deps

      - run:
          name: Lint
          command: rake lint

      - run:
          name: Unit test
          command: rake unit_test

      - run:
          name: Command test
          command: rake command_test

      - run:
          name: Performance test
          command: rake performance_test

      - run:
          name: Data race test
          command: rake data_race_test

      - run:
          name: Coverage report
          command: |
            bash <(curl -s https://codecov.io/bash)
            goveralls -coverprofile=coverage.txt -service=circle-ci -repotoken $COVERALLS_TOKEN

      - run:
          name: Benchmark
          command: rake bench

      - run:
          name: Installation
          command: rake install

version: 2
jobs:
  build:
    docker:
      - image: golang
    working_directory: /go/src/github.com/cloe-lang/cloe
    steps:
      - checkout

      - run:
          name: OS Setup
          command: |
            apt -y update --fix-missing
            apt -y install rake bundler

      - run:
          name: Dependencies
          command: rake deps

      - run:
          name: Lint
          command: rake lint

      - run:
          name: Unit test
          command: rake unit_test

      - run:
          name: Command test
          command: rake command_test

      - run:
          name: Performance test
          command: rake performance_test

      - run:
          name: Data race test
          command: rake data_race_test

      - run:
          name: Coverage report
          command: |
            curl -s https://codecov.io/bash | bash
            goveralls -coverprofile=coverage.txt -service=circle-ci -repotoken $COVERALLS_TOKEN

      - run:
          name: Benchmark
          command: rake bench

      - run:
          name: Installation
          command: rake install

Use normal shell script syntax
Use normal shell script syntax
