Skip to content

Commit

Permalink
Add sonarcloud.io execution to CI (incl. code coverage with jacoco)
Browse files Browse the repository at this point in the history
This closes #492
  • Loading branch information
kwin committed Oct 16, 2020
1 parent 85f2eb4 commit 531ebf8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
language: java
jdk: oraclejdk8
# fixing broken build, see https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766/7
dist: trusty
dist: trusty
addons:
sonarcloud:
organization: "netcentric"
token:
secure: "UPYVz3yLfAtb0OzVJFNufchYXnD1LEWMy2YEOwYb6Tsm8xx8EcpKSHaSWEvwLTV810OgJ7np2uWfbLuQzQKLey5Rwa6tVLajSqmmbNTbWJ+I2dajOkPb45McEo8iIepd2RBZaKE9/o1vdIv+4X9HOB4Dw16pqHUdWW0Az6pH6SY4pL0vyB1FKzhaBEyb46vY1Gw/n6SVEkmKixmyXQPhXYizGJnlCfr6OxmPpg9U2kTRYb3eODBs874DC49CZmXM7lHsx/i8jgtxN3GbKKloIqDI2TDA3PM3zeSAnehh2W5g25lbeZrS6auS8zOmTudkYaI/K+UVHVt6Olxl9wAmDuDZcZg6PJohRac0km5KWoLsEPTJidWhYuRazxSwlqNQ6rgzS8qShVQAKRDLbaDOlnUadumilT9s85u22MoF4EPXNp47RSvtbwHwQVirjghQBw09ABRP6bHgW7MS1yOJ6ADQU72MoNG3NQ+kjDNcLR+zfV3R1wM+azGLcR3gxJLfybx/8eOxdmOdTgLiJwxhKU0/uIqbGtxs/Dey3T4esYGcxQJ4TbeYng3iIKVbYSTvLaRG1Elgdf0hZhUgvLE5eB2nSYDB71Z9ASnXc/HVU1m7g0cCI6AgeMhVprMDUUFPY6dQoj3NS9WVm0JYfD3yW4NpEr1hODtFGKXlZSYAWlg=" # encrypted value of your token
script:
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.projectKey=Netcentric_accesscontroltool
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[![Build Status](https://travis-ci.org/Netcentric/accesscontroltool.svg?branch=develop)](https://travis-ci.org/Netcentric/accesscontroltool) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/biz.netcentric.cq.tools.accesscontroltool/accesscontroltool/badge.svg)](https://maven-badges.herokuapp.com/maven-central/biz.netcentric.cq.tools.accesscontroltool/accesscontroltool) [![License](https://img.shields.io/badge/License-EPL%201.0-red.svg)](https://opensource.org/licenses/EPL-1.0)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/biz.netcentric.cq.tools.accesscontroltool/accesscontroltool/badge.svg)](https://maven-badges.herokuapp.com/maven-central/biz.netcentric.cq.tools.accesscontroltool/accesscontroltool)
[![License](https://img.shields.io/badge/License-EPL%201.0-red.svg)](https://opensource.org/licenses/EPL-1.0)
[![Build Status](https://travis-ci.org/Netcentric/accesscontroltool.svg?branch=develop)](https://travis-ci.org/Netcentric/accesscontroltool)
[![SonarCloud Status](https://sonarcloud.io/api/project_badges/measure?project=Netcentric_accesscontroltool&metric=alert_status)](https://sonarcloud.io/dashboard?id=Netcentric_accesscontroltool)
[![SonarCloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=Netcentric_accesscontroltool&metric=coverage)](https://sonarcloud.io/component_measures/metric/coverage/list?id=Netcentric_accesscontroltool)

Access Control Tool for Adobe Experience Manager
================================================
Expand Down

0 comments on commit 531ebf8

Please sign in to comment.