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 style_job: 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"` build_job: stage: build dependencies: - style_job script: - export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 - eval echo "~$USER" - ant clean - ant build test_job: stage: test dependencies: - build_job script: - export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 - ant clean build TestBasicLog artifacts: reports: junit: junit/TEST-*.xml