From 786bd251a1a44889172314b01a6a0c16bd2d0eba Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 12 Jun 2022 15:58:06 +0100 Subject: [PATCH] Merge collectstatic job into tests Tests are the only one which really need it. Should make the other tests much faster --- .gitlab-ci.yml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 24b451e..2bd9240 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: