From ebcc1d091fb3bffbe12f96cf22210919fd4b23ad Mon Sep 17 00:00:00 2001
From: "Menezes, Luke J (PG/T - Comp Sci & Elec Eng)" <lm01906@surrey.ac.uk>
Date: Thu, 23 May 2024 17:12:07 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..1b6f61b
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,19 @@
+image: python3.9
+
+stages:
+  - pipeline
+
+before_script:
+  - pip3 install -r requirements.txt
+
+pipeline:
+  stage: pipeline
+  script: 
+    - echo "build stage"
+    - jupyter nbconvert --to script app.ipynb
+    - if [ ! -f app.py ]; then echo "Conversion failed, exiting pipeline"; exit 1; fi
+    - echo "build completed"
+    - echo "Starting Flask"
+    - nohup python3 app.py &
+    - sleep 5
+    - echo "App should have started in the background"
\ No newline at end of file
-- 
GitLab