From 8cb2f6c24983c07f6b30d187355b0bae4e5bc120 Mon Sep 17 00:00:00 2001 From: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com> Date: Mon, 22 Jun 2020 13:13:54 -0400 Subject: [PATCH] Update gitlab CI with missing if for celery --- {{cookiecutter.project_slug}}/.gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/{{cookiecutter.project_slug}}/.gitlab-ci.yml b/{{cookiecutter.project_slug}}/.gitlab-ci.yml index 9cf4bbd5d..9210738f8 100644 --- a/{{cookiecutter.project_slug}}/.gitlab-ci.yml +++ b/{{cookiecutter.project_slug}}/.gitlab-ci.yml @@ -46,7 +46,9 @@ pytest: - virtualenv venv - source venv/bin/activate - pip install -r requirements/local.txt + {% if cookiecutter.use_celery == 'y' -%} - celery multi start worker beat -A config.celery_app --pool=solo + {%- endif %} script: - pytest