Skip to content
Snippets Groups Projects
Commit a91d4a66 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: Jinja2 whitespace control changes

parent 14a2c183
No related branches found
No related tags found
No related merge requests found
# GitLab CI template for {{cookiecutter.template_name}}
{%- if cookiecutter.template_type == 'build' %}
{% if cookiecutter.template_type == 'build' %}
This project implements a GitLab CI/CD template to build, test and analyse your [{{cookiecutter.template_name}}]({{cookiecutter.refdoc_url}}) projects.
## Usage
......
......@@ -34,8 +34,7 @@ workflow:
- if: '$CI_COMMIT_MESSAGE =~ "/\[(ci skip|skip ci) on ([^],]*,)*dev(,[^],]*)*\]/" && $CI_COMMIT_REF_NAME !~ $PROD_REF && $CI_COMMIT_REF_NAME !~ $INTEG_REF'
when: never
- when: always
{%- if cookiecutter.template_type == 'build' %}
{% if cookiecutter.template_type == 'build' %}
# test job prototype: implement adaptive pipeline rules
.test-policy:
rules:
......@@ -85,8 +84,7 @@ variables:
# Default Docker image (use a public image - can be overridden)
{{ cookiecutter.template_PREFIX }}_IMAGE: "registry.hub.docker.com/{{ cookiecutter.project_slug }}:latest"
{%- if cookiecutter.template_type == 'build' %}
{% if cookiecutter.template_type == 'build' %}
# Default arguments for 'build' command
{{ cookiecutter.template_PREFIX }}_BUILD_ARGS: "build --with-default-args"
......@@ -353,8 +351,7 @@ stages:
"$1"
fi
}
{%- if cookiecutter.template_type == 'build' %}
{% if cookiecutter.template_type == 'build' %}
function output_coverage() {
echo "[TODO]: compute and output global coverage result"
echo "11% covered"
......@@ -462,8 +459,7 @@ stages:
eval_all_secrets
# ENDSCRIPT
{%- if cookiecutter.template_type == 'build' %}
{% if cookiecutter.template_type == 'build' %}
# job prototype
# defines default Docker image, tracking probe, cache policy and tags
.{{ cookiecutter.template_prefix }}-base:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment