47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
image: heeroyui/scenarium-gitlabci:latest
|
|
|
|
variables:
|
|
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8"
|
|
#JAVA_HOME: "/usr/lib/jvm/java-14-openjdk/"
|
|
|
|
before_script:
|
|
- which javac
|
|
- javac --version
|
|
- mvn --version
|
|
|
|
stages:
|
|
- ant
|
|
- maven
|
|
|
|
ant_job:
|
|
stage: ant
|
|
script:
|
|
- ant all
|
|
#- awk -F, '{ instructions += $4 + $5; covered += $5 } END { print "===============================================\nCoverage Results:\n\n", covered, " / ", instructions, " instructions covered"; print "Total", 100*covered/instructions, "% covered\n==\n===============================================" }' out/coverage/site/jacoco.csv
|
|
artifacts:
|
|
when: on_success
|
|
expire_in: 3 day
|
|
paths:
|
|
- out/coverage/site
|
|
- out/package
|
|
reports:
|
|
junit: out/junit/TEST-*.xml
|
|
|
|
maven_job:
|
|
stage: maven
|
|
script:
|
|
- mvn $MAVEN_CLI_OPTS checkstyle:checkstyle
|
|
- mvn $MAVEN_CLI_OPTS formatter:validate
|
|
- mvn $MAVEN_CLI_OPTS compile
|
|
- mvn $MAVEN_CLI_OPTS test
|
|
- mvn $MAVEN_CLI_OPTS -Dmaven.test.skip=true compile package javadoc:javadoc javadoc:jar
|
|
- awk -F, '{ instructions += $4 + $5; covered += $5 } END { print "===============================================\nCoverage Results:\n\n", covered, " / ", instructions, " instructions covered"; print "Total", 100*covered/instructions, "% covered\n==\n===============================================" }' target/site/jacoco/jacoco.csv
|
|
artifacts:
|
|
when: on_success
|
|
expire_in: 3 day
|
|
paths:
|
|
- target/site/jacoco
|
|
- target/*.jar
|
|
reports:
|
|
junit: target/surefire-reports/TEST-*.xml
|