1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

add config for CodeClimate code coverage reporting (#363)

* add config for CodeClimate code coverage reporting

* Update .travis.yml

* Update .travis.yml

* generate coverage report

* Update .travis.yml

* Update .travis.yml
This commit is contained in:
Christopher Fenner 2018-11-07 10:25:00 +01:00 committed by GitHub
parent cf334f5af2
commit 0326dd5f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,15 @@ jobs:
include:
- stage: Tests
name: Unit Tests
script: mvn clean test --batch-mode
after_success: mvn -DrepoToken=$COVERALLS_REPO_TOKEN org.jacoco:jacoco-maven-plugin:report org.eluder.coveralls:coveralls-maven-plugin:report
before_script:
- curl -L --output cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: mvn package --batch-mode
after_script:
- JACOCO_SOURCE_PATH="src vars test" ./cc-test-reporter format-coverage target/site/jacoco/jacoco.xml --input-type jacoco
- ./cc-test-reporter upload-coverage
- mvn -DrepoToken=$COVERALLS_REPO_TOKEN org.eluder.coveralls:coveralls-maven-plugin:report
- stage: Docs
name: Build