From 487e1ef9dea4950fd6a1bbf9ce90c25f580243a2 Mon Sep 17 00:00:00 2001 From: Gustav Kylberg <gusky308@student.liu.se> Date: Mon, 9 Oct 2023 17:52:46 +0200 Subject: [PATCH] added yml file --- .gitlab-ci.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..08b49fd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,41 @@ +image: alash325/javaant:latest + +stages: # List of stages for jobs, and their order of execution + - build + - test + - deploy + +build: # This job runs in the build stage, which runs first. + + stage: build + + script: + - ant build + +test: # This job runs in the test stage. + + stage: test # It only starts when the job in the build stage completes successfully. + + script: + - ant -lib test/lib/junit.jar -Dtest=AllTests testall + + artifacts: + paths: + - ./build/report/ + + reports: + junit: + - ./build/report/xml/TEST-*.* + + + +pages: + stage: deploy + dependencies: + - test + script: + - mv ./build/report/ public/ + + artifacts: + paths: + - public -- GitLab