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: ...@@ -24,10 +24,14 @@ unit tests:
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py - echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py migrate - ./manage.py migrate
- pytest apps/ --cov=apps/ - pytest apps/ --cov=apps/
artifacts:
paths:
- env/
expire_in: 1 day
tags: [preprod] tags: [preprod]
static build: static build:
stage: test stage: build
script: script:
- virtualenv -p python3 env - virtualenv -p python3 env
- source ./env/bin/activate - source ./env/bin/activate
...@@ -38,6 +42,8 @@ static build: ...@@ -38,6 +42,8 @@ static build:
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py - echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py collectstatic - ./manage.py collectstatic
tags: [preprod] tags: [preprod]
dependencies:
- unit tests
artifacts: artifacts:
paths: paths:
- static/ - 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