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
|
stage: test
|
||||||
dependencies:
|
dependencies:
|
||||||
- pip
|
- pip
|
||||||
- collect_static
|
|
||||||
- static
|
- static
|
||||||
before_script:
|
before_script:
|
||||||
- source env/bin/activate
|
- source env/bin/activate
|
||||||
variables:
|
variables:
|
||||||
SECRET_KEY: super-secret
|
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:
|
test_python:
|
||||||
<<: *python_test_template
|
<<: *python_test_template
|
||||||
script:
|
script:
|
||||||
|
- ./manage.py collectstatic --noinput --clear
|
||||||
- ./manage.py test
|
- ./manage.py test
|
||||||
|
|
||||||
django_checks:
|
django_checks:
|
||||||
|
|
Loading…
Reference in a new issue