diff options
author | Claudio André <claudioandre.br@gmail.com> | 2018-06-19 14:20:26 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2018-06-21 15:35:00 +0000 |
commit | 186038a0142f3006f4fc1b72628e1eb5efeb4717 (patch) | |
tree | 9aea0df7d05564f34250502fe699f761672ba599 | |
parent | 28a66e5df1dcf0a11b3520a2b6b71173c3eb5203 (diff) | |
download | gnome-control-center-186038a0142f3006f4fc1b72628e1eb5efeb4717.tar.gz |
CI: refactor the GitLab job header
In order to shrink the file and reuse "code".
-rw-r--r-- | .gitlab-ci.yml | 17 |
1 files 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/ |