codeclimate-community/codeclimate-markdownlint

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version: 2
jobs:
  build_and_test:
    docker:
      - image: circleci/python:latest
    steps:
      - checkout
      - setup_remote_docker:
          docker_layer_caching: true

      - run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > cc-test-reporter
      - run: chmod +x ./cc-test-reporter
      - run: ./cc-test-reporter before-build
      - run: make image
      - run: make citest
      - run:
          name: "Upload coverage"
          command: ./cc-test-reporter after-build --prefix="/usr/src/app"
          environment:
              CC_TEST_REPORTER_ID: 45c013b6d2380a087f53ebc237a799b3ca09f1a3b05ddf96982637d42a9d6861

workflows:
  version: 2
  build_deploy:
    jobs:
      - build_and_test
notify:
  webhooks:
    - url: https://cc-slack-proxy.herokuapp.com/circle