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
|
language: java
|
||||||
dist: trusty
|
|
||||||
|
jdk:
|
||||||
|
- oraclejdk8
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
organization: "ethauvin-github"
|
organization: "ethauvin-github"
|
||||||
|
|
||||||
script:
|
|
||||||
- sonar-scanner
|
|
||||||
|
|
||||||
jdk:
|
|
||||||
- oraclejdk8
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- chmod +x gradlew
|
- chmod +x gradlew
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- |
|
||||||
|
if [ "${TRAVIS_TEST_RESULT}" == 0 ]; then
|
||||||
|
./gradlew sonarqube
|
||||||
|
fi
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
|
id 'jacoco'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'com.jfrog.bintray' version '1.8.4'
|
id 'com.jfrog.bintray' version '1.8.4'
|
||||||
id 'com.github.ben-manes.versions' version '0.21.0'
|
id 'com.github.ben-manes.versions' version '0.21.0'
|
||||||
|
@ -186,3 +187,10 @@ task pandoc(type: Exec) {
|
||||||
return standardOutput.toString()
|
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