Merge collectstatic job into tests

Tests are the only one which really need it. Should make the other tests much faster
This commit is contained in:
Jake Howard 2022-06-12 15:58:06 +01:00
parent f6221a42dd
commit 786bd251a1
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 1 additions and 18 deletions

View File

@ -44,33 +44,16 @@ pip:
stage: test
dependencies:
- pip
- collect_static
- static
before_script:
- source env/bin/activate
variables:
SECRET_KEY: super-secret
collect_static:
<<: *python_test_template
stage: build
dependencies:
- pip
- static
needs:
- pip
- static
script:
- ./manage.py collectstatic --noinput -v2 --clear
artifacts:
name: 'static-$CI_JOB_ID'
paths:
- ./collected-static/
expire_in: 30 mins
test_python:
<<: *python_test_template
script:
- ./manage.py collectstatic --noinput --clear
- ./manage.py test
django_checks: