Skip to content
Snippets Groups Projects
Commit 4cbc888e authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

ci

parent 21a28880
Branches ChangementsAmalio
No related tags found
1 merge request!6Ci
Pipeline #43656 failed
...@@ -75,15 +75,6 @@ install: ...@@ -75,15 +75,6 @@ install:
#### #### #### ####
####################################################################################################################################### #######################################################################################################################################
# format:
# stage: test
# before_script:
# - source ./venv/bin/activate
# - pip install autopep8
# script:
# - autopep8 --in-place --recursive ./backend
lint: lint:
stage: test stage: test
allow_failure: false allow_failure: false
...@@ -105,23 +96,12 @@ test: ...@@ -105,23 +96,12 @@ test:
DB_HOST: mysql DB_HOST: mysql
DB_PORT: 3306 DB_PORT: 3306
WEB_ROOT: http://localhost:3000 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: before_script:
- source ./venv/bin/activate - source ./venv/bin/activate
script: script:
- cd ./backend - cd ./backend
- python -m uvicorn main:app --port=80 --host 0.0.0.0 - python -m uvicorn main:app --port=80 --host 0.0.0.0
- curl "http://localhost/api/health" coverage: '/Code coverage: "Application startup complete."'
####################################################################################################################################### #######################################################################################################################################
#### #### #### ####
......
...@@ -21,6 +21,8 @@ Navigate to [http://localhost:3001](http://localhost:3001) ...@@ -21,6 +21,8 @@ Navigate to [http://localhost:3001](http://localhost:3001)
### *Le linter* ### *Le linter*
So the new commits can be deployed, you'll need to use the linter from backend : So the new commits can be deployed, you'll need to use the linter from backend :
`pycodestyle --config=./setup.cnf --exclude=./env ./` `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/> <br/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment