Skip to content
Snippets Groups Projects
Commit a2cc42d5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

pass arguments as maven args

parent 57120cea
No related branches found
No related tags found
2 merge requests!1700Resolve "introduce new frontend to the jar file build process",!1505Java 17 compliance
Pipeline #57628 failed
...@@ -56,7 +56,7 @@ test:frontend: ...@@ -56,7 +56,7 @@ test:frontend:
coverage: '/(\d+.\d+) \% covered/' coverage: '/(\d+.\d+) \% covered/'
before_script: before_script:
# java.desktop module does not export Sun Graphics implementation for mockito # java.desktop module does not export Sun Graphics implementation for mockito
- export MAVEN_OPTS="$MAVEN_OPTS -DsurefireArgLine=--add-opens=java.desktop/sun.java2d=ALL-UNNAMED" - export MAVEN_ARGS=-DsurefireArgLine=--add-opens=java.desktop/sun.java2d=ALL-UNNAMED
- apt-get update - apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y libxrender1 libxtst6 fontconfig libfreetype6 - DEBIAN_FRONTEND=noninteractive apt-get install -y libxrender1 libxtst6 fontconfig libfreetype6
- mvn dependency:purge-local-repository -DmanualInclude="lcsb.mapviewer" - mvn dependency:purge-local-repository -DmanualInclude="lcsb.mapviewer"
...@@ -80,7 +80,7 @@ test:frontend: ...@@ -80,7 +80,7 @@ test:frontend:
- export DISPLAY=:99 - export DISPLAY=:99
- mvn -DskipTests=true clean install -pl commons -am - mvn -DskipTests=true clean install -pl commons -am
- mvn test -pl commons - mvn test -pl commons $MAVEN_ARGS
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' commons/target/site/jacoco/jacoco.csv - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' commons/target/site/jacoco/jacoco.csv
.test_backend_annotation_template: .test_backend_annotation_template:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment