From 91e89eab440b0eb568bc9de535bef761cad12170 Mon Sep 17 00:00:00 2001
From: Alfakhori <muhammad.alfakhori@hft-stuttgart.de>
Date: Mon, 14 Nov 2022 09:49:24 +0000
Subject: [PATCH] Add new file

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..a3c34d98e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+stages:
+    - test
+    - deploy
+  
+pages-test:
+  stage: test
+  script:
+    - echo "Teste, ob Projektname gesetzt ist..."
+    - (! grep 'projektname= ""' public/settings.js)
+    - echo "Teste, ob Projektseitenlink gesetzt ist..."
+    - (! grep 'projektseitenlink= ""' public/settings.js)
+    - echo "Teste, ob Kontaktperson gesetzt ist..."
+    - (! grep 'Max Mustermann' public/kontakt.html)
+  only:
+    - Rosenstein
+  
+pages:
+  stage: deploy
+  script:
+    - echo "deploy to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
+  artifacts:
+    paths:
+      - vcm
+  only: 
+    - Rosenstein
-- 
GitLab