From 1f5eefe40cd93f5beffcc0be952622e37ddf6026 Mon Sep 17 00:00:00 2001
From: Joel Nilsson <joeni320@student.liu.se>
Date: Thu, 13 Oct 2022 17:42:28 +0200
Subject: [PATCH] added yml file

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..a799a13
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,49 @@
+image: alash325/javaant:latest
+
+stages:
+
+  - build
+  - test
+  - deploy
+
+build:
+
+  stage: build
+
+  script:
+
+    - ant build
+    
+test:
+
+  stage: test
+
+  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