From a02159e6378d63d0e1ad3c04a05462d9fc62fe89 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Thu, 5 Nov 2020 23:07:18 +0100 Subject: [PATCH] build: Upload coverage report also to CodeClimate and Codacy --- .circleci/config.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fbe29d19..ad4036f3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,6 +23,7 @@ gbsteps: &gbsteps version: 2.1 + jobs: buildJ8: docker: @@ -46,10 +47,25 @@ workflows: version: 2 build: jobs: - - "buildJ8": + - buildJ8: post-steps: - run: name: Upload coverage to Codecov command: bash <(curl -s https://codecov.io/bash) + - run: + name: Prepare Code Climate coverage reporter + command: | + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + chmod +x ./cc-test-reporter + ./cc-test-reporter before-build + - run: + name: Upload coverage to Code Climate + command: | + JACOCO_SOURCE_PATH=src/main/java ./cc-test-reporter format-coverage ./build/target/reports/coverage/jacoco.xml --input-type jacoco + ./cc-test-reporter upload-coverage + when: on_success + - run: + name: Upload coverage to Codacy + command: bash <(curl -Ls https://coverage.codacy.com/get.sh) report - "buildJ9" - "buildJ11" -- 2.39.5