mirror of https://github.com/shred/acme4j
Gitlab CI: Use jacoco and sonar
parent
527bb644f5
commit
dbb33118d1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue