[gnome-control-center] CI: refactor the GitLab job header
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] CI: refactor the GitLab job header
- Date: Thu, 21 Jun 2018 16:04:57 +0000 (UTC)
commit 186038a0142f3006f4fc1b72628e1eb5efeb4717
Author: Claudio André <claudioandre br gmail com>
Date: Tue Jun 19 14:20:26 2018 -0300
CI: refactor the GitLab job header
In order to shrink the file and reuse "code".
.gitlab-ci.yml | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0daba6dde..4e89a0c6a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,11 @@ stages:
untracked: true
expire_in: 3h30min
+.Show Info: &environment_information
+ echo "== Info ==" &&
+ build-aux/ci/ci-helper.sh "INFO" &&
+ build-aux/ci/ci-helper.sh "GIT_INFO"
+
##
# Stage: Build
#
@@ -30,9 +35,7 @@ build:
stage: build
script:
- - echo "== Info =="
- - build-aux/ci/ci-helper.sh "INFO"
- - build-aux/ci/ci-helper.sh "GIT_INFO"
+ - *environment_information
- echo "== Building =="
- meson . _build
@@ -57,9 +60,7 @@ test:
- build
script:
- - echo "== Info =="
- - build-aux/ci/ci-helper.sh "INFO"
- - build-aux/ci/ci-helper.sh "GIT_INFO"
+ - *environment_information
- |
if [[ -n "${CI_COMMIT_TAG}" ]]; then
@@ -81,9 +82,7 @@ coverage:
stage: test
script:
- - echo "== Info =="
- - build-aux/ci/ci-helper.sh "INFO"
- - build-aux/ci/ci-helper.sh "GIT_INFO"
+ - *environment_information
- echo "== Building =="
- rm -rf _build/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]