Gitlab CI: Use jacoco and sonar

pull/30/head
Richard Körber 2016-12-16 00:38:37 +01:00
parent 527bb644f5
commit dbb33118d1
1 changed files with 2 additions and 6 deletions

View File

@ -1,11 +1,7 @@
image: maven:3-jdk-8 image: maven:3-jdk-8
# Cache local m2 repository
# https://gitlab.com/gitlab-org/gitlab-ce/issues/15167#note_15206811
variables:
MAVEN_OPTS: -Dmaven.repo.local=/cache/maven.repository
build: build:
script: script:
- mvn -B test site:site - mvn -B clean org.jacoco:jacoco-maven-plugin:prepare-agent install site:site -Dmaven.test.failure.ignore=true
- mvn -B sonar:sonar -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref_name=$CI_BUILD_REF_NAME