From 567022a9b7c3ed20a1429f5af7fc50d5c86d8559 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Wed, 3 May 2017 06:28:30 -0400 Subject: [PATCH] updated so that jacoco results can be sent to codacy --- .travis.yml | 10 +++++++ build-reporting/pom.xml | 10 ++++++- build-reporting/src/site/markdown/index.md | 5 ++++ build-reporting/src/site/site.xml | 32 +++++++++++++++++++++ src/site/markdown/jacoco-aggregate/index.md | 2 ++ 5 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 build-reporting/src/site/markdown/index.md create mode 100644 build-reporting/src/site/site.xml create mode 100644 src/site/markdown/jacoco-aggregate/index.md diff --git a/.travis.yml b/.travis.yml index 7e2ab77cf..75e4c7e78 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,13 @@ language: java jdk: oraclejdk7 script: mvn install -DreleaseTesting +env: + global: + secure: ZUzhWfpXJw/oAeDlUkDFkEJMT0T7kCN3d7ah8urkL2B0KFfKOqQagkbXkgvDa1SYud8VdcnoGa69LfkEr5IrdqW7R4bEYZAiN5swm4Z0iO8t53szVspm2f+O9jQ44O/sfOfpfLxWUUuhdc7Vbrszp+tSszxdPmssWL+f5a/mfWs= + +before_install: + - sudo apt-get install jq + - wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url) + +after_success: + - java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r build-reporting/target/site/jacoco-aggregate/jacoco.xml diff --git a/build-reporting/pom.xml b/build-reporting/pom.xml index ad3943d9c..d77663e2d 100644 --- a/build-reporting/pom.xml +++ b/build-reporting/pom.xml @@ -24,7 +24,15 @@ Copyright (c) 2017 - Jeremy Long. All Rights Reserved. build-reporting - + + + + github-pages-site + Deployment through GitHub's site deployment plugin + ${basedir}/../target/site/${project.version}/build-reporting + + + org.owasp diff --git a/build-reporting/src/site/markdown/index.md b/build-reporting/src/site/markdown/index.md new file mode 100644 index 000000000..1a2e3d771 --- /dev/null +++ b/build-reporting/src/site/markdown/index.md @@ -0,0 +1,5 @@ +About +===== +OWASP dependency-check build reporting is used to aggregate jacoco test coverage results +so that they can be posted to [Codacy](https://www.codacy.com/app/OWASP_Reviews/DependencyCheck/dashboard) +to track code coverage. \ No newline at end of file diff --git a/build-reporting/src/site/site.xml b/build-reporting/src/site/site.xml new file mode 100644 index 000000000..9304ea3c4 --- /dev/null +++ b/build-reporting/src/site/site.xml @@ -0,0 +1,32 @@ + + + + + OWASP dependency-check build reporting + OWASP dependency-check build reporting + ../images/dc.svg + + + + + + + + + \ No newline at end of file diff --git a/src/site/markdown/jacoco-aggregate/index.md b/src/site/markdown/jacoco-aggregate/index.md new file mode 100644 index 000000000..40b4fd961 --- /dev/null +++ b/src/site/markdown/jacoco-aggregate/index.md @@ -0,0 +1,2 @@ +# Jacoco Aggregate Report +The test coverage reports can be found [here](../build-reporting/jacoco-aggregate/index.html). \ No newline at end of file