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

improve ci

parent f220c48a
No related branches found
No related tags found
1 merge request!22improve ci
Pipeline #43830 passed
...@@ -37,6 +37,11 @@ workflow: ...@@ -37,6 +37,11 @@ workflow:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
cache:
paths:
- venv/
- frontend/node_modules/
# include: # include:
# - template: 'Code-Quality.gitlab-ci.yml' # - template: 'Code-Quality.gitlab-ci.yml'
...@@ -48,12 +53,9 @@ workflow: ...@@ -48,12 +53,9 @@ workflow:
install-virtualenv: install-virtualenv:
stage: build stage: build
cache:
paths:
- venv/
script: script:
- python3 -m venv ./venv - python3 -m venv venv/
- source ./venv/bin/activate - source venv/bin/activate
- pip install --upgrade pip && pip install pip-tools - pip install --upgrade pip && pip install pip-tools
- pip install -r ./backend/requirements.txt - pip install -r ./backend/requirements.txt
...@@ -61,9 +63,6 @@ install-virtualenv: ...@@ -61,9 +63,6 @@ install-virtualenv:
install-npm-packages: install-npm-packages:
image: node:14.6.0 image: node:14.6.0
stage: build stage: build
cache:
paths:
- frontend/node_modules/
script: script:
- cd ./frontend - cd ./frontend
- npm ci - npm ci
...@@ -77,7 +76,7 @@ install-npm-packages: ...@@ -77,7 +76,7 @@ install-npm-packages:
lint-back: lint-back:
stage: test stage: test
before_script: before_script:
- source ./venv/bin/activate - source venv/bin/activate
- pip install pycodestyle - pip install pycodestyle
script: script:
- pycodestyle --config=./backend/setup.cnf ./backend - pycodestyle --config=./backend/setup.cnf ./backend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment