WebJamApps/CollegeLutheran

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version:  2.1
jobs:
  build:
    environment:
      CC_TEST_REPORTER_ID: c6777338664984c86131bd32be65267a9453bffed3effa06ec1f76a5383c3a73
    docker:
      - image: cimg/node:lts-browsers
    working_directory: ~/repo
    steps:
      - checkout
      - run:
          name: Setup Code Climate test-reporter
          command: |
            curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
            chmod +x ./cc-test-reporter
      - run:
          name: Test install
          command: npm install
      - run:
          name: run all tests
          command: |
            ./cc-test-reporter before-build
            npm test
            ./cc-test-reporter after-build --coverage-input-type lcov --exit-code $?
      - store_artifacts:
          path: coverage