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

---
 .gitlab-ci.yml | 22 +---------------------
 README.md      |  2 ++
 2 files changed, 3 insertions(+), 21 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4058e6c..7e7b9e4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,15 +75,6 @@ install:
 ####                                                                                                                               ####
 #######################################################################################################################################
 
-# format:
-#   stage: test
-#   before_script:
-#     - source ./venv/bin/activate
-#     - pip install autopep8
-#   script:
-#     - autopep8 --in-place --recursive ./backend
-  
-
 lint:
   stage: test
   allow_failure: false
@@ -105,23 +96,12 @@ test:
     DB_HOST: mysql
     DB_PORT: 3306
     WEB_ROOT: http://localhost:3000
-    # SECRET_KEY: $SECRET_KEY
-    # TEST: "TRUE"
-    # STATIC_ROOT: "./"
-    # DJANGO_DEBUG: "FALSE"
-    # ALLOWED_HOSTS: ""
-    # DB_ENGINE: $ENGINE
-    # DB_NAME: $POSTGRES_DB
-    # DB_USER: $POSTGRES_USER
-    # DB_PASSWORD: $POSTGRES_PASSWORD
-    # DB_HOST: $POSTGRES_DB_HOST
-    # DB_PORT: 5432
   before_script:
     - source ./venv/bin/activate
   script:
     - cd ./backend
     - python -m uvicorn main:app --port=80 --host 0.0.0.0
-    - curl "http://localhost/api/health"
+  coverage: '/Code coverage: "Application startup complete."'
 
 #######################################################################################################################################
 ####                                                                                                                               ####
diff --git a/README.md b/README.md
index f257600..e89bd40 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,8 @@ Navigate to [http://localhost:3001](http://localhost:3001)
 ### *Le linter*
 So the new commits can be deployed, you'll need to use the linter from backend :  
 `pycodestyle --config=./setup.cnf --exclude=./env ./`  
+You can use autoformat with autopep8 running :  
+`autopep8 --in-place --global-config=./setup.cnf --recursive --exclude=./env --aggressive ./`
 
 <br/>  
 
-- 
GitLab