-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the use of whitespace in templates.
- Loading branch information
Showing
3 changed files
with
33 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{% extends "run_docker_build.tmpl" %} | ||
|
||
{% set conda_vars = {'python': 'CONDA_PY', 'numpy': 'CONDA_NPY'} %} | ||
|
||
{%- extends "run_docker_build.tmpl" -%} | ||
{%- set conda_vars = {'python': 'CONDA_PY', 'numpy': 'CONDA_NPY'} -%} | ||
{% macro matrix_env(matrix_item) -%} | ||
{% for dep_name, version in matrix_item | sort %} | ||
{%- if dep_name in conda_vars %}{% set version = version|replace('.', '') %}{% endif %} | ||
export {{ conda_vars.get(dep_name, 'CONDA_' + dep_name|upper) }}={{ version }}{% endfor %} | ||
{%- endmacro %} | ||
export {{ conda_vars.get(dep_name, 'CONDA_' + dep_name|upper) }}={{ version }}{% endfor %} | ||
{%- endmacro -%} | ||
|
||
{% block build -%}# Embarking on {{ matrix|length }} case(s). | ||
{% for case in matrix | sort %} | ||
set -x | ||
{{- matrix_env(case) }} | ||
set +x | ||
{{ super()|indent }} | ||
{%- block build -%} | ||
# Embarking on {{ matrix|length }} case(s). | ||
{%- for case in matrix | sort %} | ||
{%- if case %} | ||
set -x | ||
{{- matrix_env(case) }} | ||
set +x | ||
{% endif -%} | ||
{{ super() }} | ||
{% endfor %}{% endblock -%} | ||
|
||
{% block test_and_upload -%}{% for case in matrix | sort -%} | ||
{{- matrix_env(case) }} | ||
{{ super()|indent }} | ||
{%- endfor %}{% endblock -%} | ||
{%- block test_and_upload -%}{% for case in matrix | sort -%} | ||
{{ matrix_env(case) }} | ||
{{- super()|indent(2) }} | ||
{%- endfor -%}{% endblock -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters