Added sonarcloud with jacoco.
This commit is contained in:
parent
7c8e348b27
commit
931d08be63
3 changed files with 17 additions and 9 deletions
16
.travis.yml
16
.travis.yml
|
@ -1,15 +1,17 @@
|
|||
language: java
|
||||
dist: trusty
|
||||
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
|
||||
addons:
|
||||
sonarcloud:
|
||||
organization: "ethauvin-github"
|
||||
|
||||
script:
|
||||
- sonar-scanner
|
||||
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
|
||||
before_install:
|
||||
- chmod +x gradlew
|
||||
|
||||
after_success:
|
||||
- |
|
||||
if [ "${TRAVIS_TEST_RESULT}" == 0 ]; then
|
||||
./gradlew sonarqube
|
||||
fi
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'jacoco'
|
||||
id 'maven-publish'
|
||||
id 'com.jfrog.bintray' version '1.8.4'
|
||||
id 'com.github.ben-manes.versions' version '0.21.0'
|
||||
|
@ -186,3 +187,10 @@ task pandoc(type: Exec) {
|
|||
return standardOutput.toString()
|
||||
}
|
||||
}
|
||||
|
||||
sonarqube {
|
||||
properties {
|
||||
property("sonar.projectKey", "ethauvin_semver")
|
||||
property("sonar.sourceEncoding", "UTF-8")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
sonar.projectKey=ethauvin_semver
|
||||
sonar.sourceEncoding=UTF-8
|
Loading…
Add table
Add a link
Reference in a new issue