scenarium-logger/.gitlab-ci.yml

50 lines
848 B
YAML

image: heeroyui/scenarium-gitlabci:latest
variables:
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8"
cache:
paths:
- .m2/repository/
- target/
stages:
- style
- build
- test
- package
style_job:
stage: style
script:
- java -jar ~/checkstyle.jar -c CheckStyle.xml `find src/ -name "*.java"`
- java -jar ~/checkstyle.jar -c CheckStyle.xml `find test/src/ -name "*.java"`
build_job:
stage: build
dependencies:
- style_job
script:
- mvn $MAVEN_CLI_OPTS compile
test_job:
stage: test
dependencies:
- build_job
script:
- mvn $MAVEN_CLI_OPTS test
artifacts:
reports:
junit: junit/TEST-*.xml
package_job:
stage: package
dependencies:
- test_job
script:
- mvn $MAVEN_CLI_OPTS package
artifacts:
when: on_success
expire_in: 1 day
paths:
- target/*.jar