From a94982d190d18b5e253484b1b79306bf2ced41db Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Wed, 5 Aug 2020 20:33:33 +1200 Subject: [PATCH] Adding Code Climate coverage reporter --- .circleci/config.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b93611d3..d8eb5c7bd 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -144,9 +144,6 @@ jobs: - run: name: Build code command: npm run build:prod - - run: - name: Run unit tests - command: npm run jest - run: name: Install python dependencies command: pip install -e . @@ -165,9 +162,16 @@ jobs: keys: - v1-dependencies-{{ checksum "IRIS_VERSION" }} - run: - name: Run Jest unit tests - command: npm run test - # Submit coverage + name: Install 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: Run Test and Coverage + command: | + ./cc-test-reporter before-build + npm run test + ./cc-test-reporter after-build --exit-code $? deploy: docker: