From d07857fb91bd39948e5fe5b31cb83e7d9e23fa19 Mon Sep 17 00:00:00 2001
From: Antoine Gaudron-desjardins <antoine.gaudrondesjardins@student-cs.fr>
Date: Wed, 6 Jul 2022 10:03:10 +0200
Subject: [PATCH] ci

---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c47c8a7..8e69ed1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,7 +77,6 @@ install:
 
 lint:
   stage: test
-  allow_failure: false
   before_script:
     - source ./venv/bin/activate
     - pip install pycodestyle
@@ -98,9 +97,10 @@ test:
     WEB_ROOT: http://localhost:3000
   before_script:
     - source ./venv/bin/activate
-    - cd ./backend
-    - python -m uvicorn main:app --port=80 --host 0.0.0.0
   script:
+    - cd ./backend
+    - docker build -t app ./backend
+    - docker run -p 8000:80 app --env-file ./backend/.env
     - curl "http://localhost/api/health"
 
 #######################################################################################################################################
-- 
GitLab