Skip to content
Snippets Groups Projects

improve ci

1 file
+ 8
9
Compare changes
  • Side-by-side
  • Inline
+ 8
9
@@ -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