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
Merge requests
!22
improve ci
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
improve ci
linting
into
main
Overview
0
Commits
7
Pipelines
12
Changes
1
Merged
improve ci
Antoine Gaudron-Desjardins
requested to merge
linting
into
main
Jul 7, 2022
Overview
0
Commits
7
Pipelines
12
Changes
1
0
0
Merge request reports
Viewing commit
f1b2b931
Prev
Next
Show latest version
1 file
+
8
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f1b2b931
improve ci
· f1b2b931
Antoine Gaudron-Desjardins
authored
Jul 7, 2022
.gitlab-ci.yml
+
8
−
9
View file @ f1b2b931
Edit in single-file editor
Open in Web IDE
Show full file
@@ -37,6 +37,11 @@ workflow:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
-
if
:
$CI_COMMIT_BRANCH
cache
:
paths
:
-
venv/
-
frontend/node_modules/
# include:
# - template: 'Code-Quality.gitlab-ci.yml'
@@ -48,12 +53,9 @@ workflow:
install-virtualenv
:
stage
:
build
cache
:
paths
:
-
venv/
script
:
-
python3 -m venv
./
venv
-
source
./
venv/bin/activate
-
python3 -m venv venv
/
-
source venv/bin/activate
-
pip install --upgrade pip && pip install pip-tools
-
pip install -r ./backend/requirements.txt
@@ -61,9 +63,6 @@ install-virtualenv:
install-npm-packages
:
image
:
node:14.6.0
stage
:
build
cache
:
paths
:
-
frontend/node_modules/
script
:
-
cd ./frontend
-
npm ci
@@ -77,7 +76,7 @@ install-npm-packages:
lint-back
:
stage
:
test
before_script
:
-
source
./
venv/bin/activate
-
source venv/bin/activate
-
pip install pycodestyle
script
:
-
pycodestyle --config=./backend/setup.cnf ./backend
Loading