Commit 12265d3f authored by okhin's avatar okhin

Use artifacts to pass env around

parent 34a983ea
Pipeline #1037 failed with stages
in 27 seconds
......@@ -24,10 +24,14 @@ 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: test
stage: build
script:
- virtualenv -p python3 env
- source ./env/bin/activate
......@@ -38,6 +42,8 @@ static build:
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py collectstatic
tags: [preprod]
dependencies:
- unit tests
artifacts:
paths:
- static/
......
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