summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zschocke <f.zschocke+git@gmail.com>2020-11-05 23:07:18 +0100
committerFlorian Zschocke <f.zschocke+git@gmail.com>2020-11-05 23:15:57 +0100
commita02159e6378d63d0e1ad3c04a05462d9fc62fe89 (patch)
tree940653e05a50f3587467ce78a15cbb59ff1400cb
parentc7eef37bfe5ae246cdf5ca5c502e4b5471290cb1 (diff)
downloadgitblit-a02159e6378d63d0e1ad3c04a05462d9fc62fe89.tar.gz
gitblit-a02159e6378d63d0e1ad3c04a05462d9fc62fe89.zip
build: Upload coverage report also to CodeClimate and Codacy
-rw-r--r--.circleci/config.yml18
1 files changed, 17 insertions, 1 deletions
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"