From 5ed10d18d0089a07fb9cda98a9723613581baa27 Mon Sep 17 00:00:00 2001
From: Jasmin Lehtola <jajohl@utu.fi>
Date: Thu, 5 Oct 2023 10:15:46 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 64b372d..e541439 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,3 +47,32 @@ deploy-job:      # This job runs in the deploy stage.
   script:
     - echo "Deploying application..."
     - echo "Application successfully deployed."
+
+
+
+    image: openjdk:latest
+
+build:
+    stage: build
+    script:
+        - javac SiteGen.java
+
+test:
+    stage: test
+    script:
+        - javac -cp "./junit-platform-console-standalone-1.8.1.jar" SiteGenTest.java SiteGen.java
+        - java -jar junit-platform-console-standalone-1.8.1.jar -cp "." -c SiteGenTest 
+
+pages:
+    stage: deploy
+    script:
+        - javac SiteGen.java
+        - java SiteGen
+    artifacts:
+        paths:
+            - public
+    only:
+        - main
+
+
+    
-- 
GitLab