From fa5f3cdad02acfebf0c9ca1ae2df0c58fb0b75fa Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 16 Aug 2020 23:24:08 +0200 Subject: [PATCH] [CI] test complex CI --- .gitlab-ci.yml | 27 +++++++++- build.xml | 134 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+), 2 deletions(-) create mode 100644 build.xml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 60bf636..3c535d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,11 +2,15 @@ image: bellsoft/liberica-openjdk-alpine:latest before_script: - apk update && apk add apache-ant unzip wget openssh-client git - - git submodule sync --recursive - - git submodule update --init --recursive + - 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 @@ -15,3 +19,22 @@ ci_style: - 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 diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..e920c8e --- /dev/null +++ b/build.xml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +