Skip to content
Snippets Groups Projects

fix artifacts vs cache

1 file
+ 2
14
Compare changes
  • Side-by-side
  • Inline
+ 8
14
@@ -28,7 +28,7 @@ image: python:3.9
@@ -28,7 +28,7 @@ image: python:3.9
stages:
stages:
- build
- install
- test
- test
- deploy
- deploy
@@ -51,21 +51,16 @@ cache:
@@ -51,21 +51,16 @@ cache:
#### ####
#### ####
#######################################################################################################################################
#######################################################################################################################################
install-virtualenv:
stage: build
script:
- python3 -m venv venv/
- source venv/bin/activate
- pip install --upgrade pip && pip install pip-tools
- pip install -r ./backend/requirements.txt
install-npm-packages:
install-npm-packages:
image: node:14.6.0
image: node:14.6.0
stage: build
stage: install
script:
script:
- cd ./frontend
- cd ./frontend
- npm ci
- npm ci
 
artifacts:
 
paths:
 
- frontend/node_modules/
 
expire_in: 30 mins
#######################################################################################################################################
#######################################################################################################################################
#### ####
#### ####
@@ -77,12 +72,11 @@ lint-back:
@@ -77,12 +72,11 @@ lint-back:
stage: test
stage: test
allow_failure: true
allow_failure: true
before_script:
before_script:
 
- python3 -m venv venv/
- source venv/bin/activate
- source venv/bin/activate
- pip install pycodestyle
script:
script:
 
- pip install pycodestyle
- pycodestyle --config=./backend/setup.cnf ./backend
- pycodestyle --config=./backend/setup.cnf ./backend
dependencies:
- install-virtualenv
lint-front:
lint-front:
Loading