Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ViaResto-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aymeric Chaumont
ViaResto-website
Commits
4cbc888e
Commit
4cbc888e
authored
3 years ago
by
Antoine Gaudron-Desjardins
Browse files
Options
Downloads
Patches
Plain Diff
ci
parent
21a28880
Branches
ChangementsAmalio
Branches containing commit
No related tags found
1 merge request
!6
Ci
Pipeline
#43656
failed
3 years ago
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-21
1 addition, 21 deletions
.gitlab-ci.yml
README.md
+2
-0
2 additions, 0 deletions
README.md
with
3 additions
and
21 deletions
.gitlab-ci.yml
+
1
−
21
View file @
4cbc888e
...
@@ -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."'
#######################################################################################################################################
#######################################################################################################################################
#### ####
#### ####
...
...
This diff is collapsed.
Click to expand it.
README.md
+
2
−
0
View file @
4cbc888e
...
@@ -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/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment