From f97a16119d19b3a56dfef62bce445a408dc5f7a4 Mon Sep 17 00:00:00 2001
From: RENAUX Anna <anna.renaux5@etu.univ-lorraine.fr>
Date: Wed, 10 Jan 2024 11:12:57 +0000
Subject: [PATCH] add the pipeline 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 0000000..4c5745b
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+stages:
+  - build
+  - test
+  - deploy
+
+variables:
+  DOCKER_IMAGE_TAG: eval.py
+
+before_script:
+  - apt-get update -qy
+  - apt-get install -y python3 python3-pip
+
+build:
+  stage: build
+
+test:
+  stage: test
+  script:
+    - python3 -m unittest discover
+
+deploy:
+  stage: deploy
+  script:
+    - docker build -t eval.py:$DOCKER_IMAGE_TAG .
+    - docker run -p 9090:9090 eval.py:$DOCKER_IMAGE_TAG
-- 
GitLab