Skip to content

Commit

Permalink
build: Upload coverage report also to CodeClimate and Codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
flaix committed Nov 5, 2020
1 parent c7eef37 commit a02159e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ gbsteps: &gbsteps

version: 2.1


jobs:
buildJ8:
docker:
Expand All @@ -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"

0 comments on commit a02159e

Please sign in to comment.