Commit d45a01d7 authored by okhin's avatar okhin
Browse files

Merge branch 'ci-cd-branch' into rp2

parents c90d4d2b 12265d3f
......@@ -3,7 +3,8 @@ variables:
cache:
paths:
- "$CI_PROJECT_DIR/pip-cache"
- "pip-cache"
- "env"
key: "$CI_PROJECT_ID"
stages:
......@@ -23,4 +24,27 @@ unit tests:
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py migrate
- pytest apps/ --cov=apps/
artifacts:
paths:
- env/
expire_in: 1 day
tags: [preprod]
static build:
stage: build
script:
- virtualenv -p python3 env
- source ./env/bin/activate
- pip install -r requirements.txt
- yarn install
- webpack
- echo "DEBUG = False" > ./project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py collectstatic
tags: [preprod]
dependencies:
- unit tests
artifacts:
paths:
- static/
expire_in: 1 day
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment