[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/6] gitlab-ci: Extract &environment_variables template
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 1/6] gitlab-ci: Extract &environment_variables template |
Date: |
Wed, 12 May 2021 07:37:09 +0200 |
To be able to set the same environment variables to multiple jobs,
extract what we currently have as a template.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
.gitlab-ci.d/buildtest-template.yml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.gitlab-ci.d/buildtest-template.yml
b/.gitlab-ci.d/buildtest-template.yml
index 32aaef1a213..58b01744751 100644
--- a/.gitlab-ci.d/buildtest-template.yml
+++ b/.gitlab-ci.d/buildtest-template.yml
@@ -1,8 +1,11 @@
+.environment_variables_template:
+ before_script:
+ - JOBS=$(expr $(nproc) + 1)
+
.native_build_job_template:
stage: build
image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
- before_script:
- - JOBS=$(expr $(nproc) + 1)
+ extends: .environment_variables_template
script:
- if test -n "$LD_JOBS";
then
--
2.26.3
- [PATCH v2 0/6] gitlab-ci: Allow using FreeBSD runners, Philippe Mathieu-Daudé, 2021/05/12
- [PATCH v2 1/6] gitlab-ci: Extract &environment_variables template,
Philippe Mathieu-Daudé <=
- [PATCH v2 2/6] gitlab-ci: Adapt JOBS variable for FreeBSD runners, Philippe Mathieu-Daudé, 2021/05/12
- [PATCH v2 3/6] gitlab-ci: Run GNU make via the $MAKE variable, Philippe Mathieu-Daudé, 2021/05/12
- [PATCH v2 4/6] gitlab-ci: Add ccache in $PATH and display statistics, Philippe Mathieu-Daudé, 2021/05/12
- [PATCH v2 5/6] gitlab-ci: Simplify before/after script for Avocado based jobs, Philippe Mathieu-Daudé, 2021/05/12
- [PATCH v2 6/6] gitlab-ci: Add FreeBSD jobs, Philippe Mathieu-Daudé, 2021/05/12