diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..afeba1e3 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,6 @@ +coverage: + status: + patch: off +ignore: + - "**/*Exception.java" + - "**/Activator.java" \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 33db0239..282901a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,10 @@ before_script: # Prevent installed packages from being used during build - rm -rfv "$HOME/.m2/repository/org/pitest/" -script: mvn verify +script: mvn verify -P jacoco + +after_success: + - bash <(curl -s https://codecov.io/bash) # Keep p2 information cache: diff --git a/tests/org.pitest.pitclipse.tests.coverage.report/pom.xml b/tests/org.pitest.pitclipse.tests.coverage.report/pom.xml new file mode 100644 index 00000000..4cccec2c --- /dev/null +++ b/tests/org.pitest.pitclipse.tests.coverage.report/pom.xml @@ -0,0 +1,68 @@ + + 4.0.0 + + + org.pitest + org.pitest.pitclipse.tests + 2.0.0-SNAPSHOT + + + org.pitest.pitclipse.tests.coverage.report + pom + + Aggregates Jacoco's code coverage reports, easing their use in CI tools + + + + jacoco + + false + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-version} + + + verify + + report-aggregate + + + + + + + + + + + + org.pitest + org.pitest.pitclipse.runner + 2.0.0-SNAPSHOT + compile + + + org.pitest + org.pitest.pitclipse.runner.tests + 2.0.0-SNAPSHOT + test + + + org.pitest + org.pitest.pitclipse.ui + 2.0.0-SNAPSHOT + compile + + + org.pitest + org.pitest.pitclipse.ui.tests + 2.0.0-SNAPSHOT + test + + + \ No newline at end of file diff --git a/tests/pom.xml b/tests/pom.xml index f9babd5e..2dbb4a78 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -25,6 +25,9 @@ io.cucumber + + + org.pitest.pitclipse.tests.coverage.report @@ -40,4 +43,39 @@ + + + + + jacoco + + false + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-version} + + + + **/*Exception.class + + + **/Activator.class + + + + + + prepare-agent + + + + + + + + \ No newline at end of file