From f950c015c504076e9b5a918a76d860d40d285ce7 Mon Sep 17 00:00:00 2001
From: "Menezes, Luke J (PG/T - Comp Sci & Elec Eng)" <lm01906@surrey.ac.uk>
Date: Fri, 24 May 2024 09:57:30 +0000
Subject: [PATCH] Upload New File

---
 gitlab_pipeline.yaml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 gitlab_pipeline.yaml

diff --git a/gitlab_pipeline.yaml b/gitlab_pipeline.yaml
new file mode 100644
index 0000000..1b6f61b
--- /dev/null
+++ b/gitlab_pipeline.yaml
@@ -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