scenarium-logger/.gitlab-ci.yml

41 lines
1.2 KiB
YAML

image: bellsoft/liberica-openjdk-alpine:latest
before_script:
- apk update && apk add apache-ant unzip wget openssh-client git
- wget -O ~/javaFXSDK.zip http://gluonhq.com/download/javafx-14-sdk-linux/ -P ~
- unzip ~/javaFXSDK.zip -d ~/javaFXSDK
- ls ~/javaFXSDK/javafx-sdk-14/lib
- wget https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/1.5.2/junit-platform-console-standalone-1.5.2.jar -P ~
stages:
- style
- build
- test
ci_style:
stage: style
script:
- export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
- wget https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.34/checkstyle-8.34-all.jar -O checkstyle.jar
- java -jar checkstyle.jar -c CheckStyle.xml `find src/ -name "*.java"`
- java -jar checkstyle.jar -c CheckStyle.xml `find test/src/ -name "*.java"`
ci_build:
stage: build
script:
- export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
- eval echo "~$USER"
- cd core/
- ant clean
- ant build
ci_test:
stage: test
script:
- export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
- cd gui/
- ant clean build TestBasicLog
artifacts:
reports:
junit: junit/TEST-*.xml