From 6ac4ef59702216dfadbf8f8721af266ca057edb5 Mon Sep 17 00:00:00 2001
From: Philip Folkunger <phifo334@student.liu.se>
Date: Thu, 6 Oct 2022 17:55:44 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3d54add
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,32 @@
+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