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:
parent
f6221a42dd
commit
786bd251a1
1 changed files with 1 additions and 18 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue