From 33b947df6ef0cd1955d434eeba7b06bad603e11c Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Fri, 4 Jan 2019 17:17:24 +0800 Subject: [PATCH] add cobertura --- .circleci/config.yml | 7 +++---- pom.xml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 63931c49..02f7a045 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,10 +24,9 @@ jobs: - ~/.m2 - run: name: "Running build" - command: ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - - run: - name: "install codecov" - command: "pip install codecov" + command: | + ./mvnw cobertura:cobertura + ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - run: name: "Aggregate test results" when: always diff --git a/pom.xml b/pom.xml index 776c8b0b..1d721fb3 100644 --- a/pom.xml +++ b/pom.xml @@ -179,6 +179,18 @@ false + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + + html + xml + + + +