From 4a4e37978e197bd6123a53ccebc6febf99c2292e Mon Sep 17 00:00:00 2001 From: Abdullah Adeel Date: Mon, 17 Jan 2022 15:21:16 +0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20update=20`.gitlab-ci.yml`:=20fix?= =?UTF-8?q?ed=20indentation=20problem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {{cookiecutter.project_slug}}/.gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/{{cookiecutter.project_slug}}/.gitlab-ci.yml b/{{cookiecutter.project_slug}}/.gitlab-ci.yml index 303b326a5..5ee1aabfc 100644 --- a/{{cookiecutter.project_slug}}/.gitlab-ci.yml +++ b/{{cookiecutter.project_slug}}/.gitlab-ci.yml @@ -42,22 +42,22 @@ pytest: - docker-compose -f local.yml up -d script: - docker-compose -f local.yml run django pytest - {%- else -%} + {%- else %} image: python:3.9 tags: - python services: - {% if cookiecutter.database_engine == 'postgresql' -%} + {%- if cookiecutter.database_engine == 'postgresql' %} - postgres:{{ cookiecutter.database_version.split('@')[1] }} - {% elif cookiecutter.database_engine == 'mysql' -%} + {%- elif cookiecutter.database_engine == 'mysql' %} - mysql:{{ cookiecutter.database_version.split('@')[1] }} - {% endif -%} + {%- endif %} variables: - {% if cookiecutter.database_engine == 'postgresql' -%} + {%- if cookiecutter.database_engine == 'postgresql' %} DATABASE_URL: pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB - {% elif cookiecutter.database_engine == 'mysql' -%} + {%- elif cookiecutter.database_engine == 'mysql' %} DATABASE_URL: mysql://$MYSQL_USER:$MYSQL_PASSWORD@mysql/$MYSQL_DATABASE - {% endif -%} + {%- endif %} before_script: - pip install -r requirements/local.txt