[gegl] gitlab-ci: conditional execution for babl-min-version
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gitlab-ci: conditional execution for babl-min-version
- Date: Mon, 12 Aug 2019 16:20:34 +0000 (UTC)
commit 84ae94f22a5821de03401c59ffc38914a3746d8e
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Aug 12 18:19:28 2019 +0200
gitlab-ci: conditional execution for babl-min-version
Another permutation of trying to achieve use of master when we are
depending on master rather than a specific tag, this is the case
whenever the micro part of the version is odd.
.gitlab-ci.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dc3c1e53e..a65b8921b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,7 +38,11 @@ babl-min-meson:
extends: .babl-base
script:
- grep babl_required_version ../configure.ac | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sed 's/\./_/g' >
.babl_min_version
- - if [ x$(( $(cut .babl_min_version -f 3 -d _) % 2)) == x1 ] ; then git fetch --no-tags ; git checout
master ; else ; git fetch --no-tags origin "refs/tags/BABL_`cat .babl_min_version`:refs/tags/MIN_VERSION" ;
git checkout MIN_VERSION ; fi
+ - if [ x$(( $(cut .babl_min_version -f 3 -d _) % 2)) = x1 ] ; then touch .use_master ; fi
+ - test -e .use_master && git fetch
+ - test -e .use_master && git checkout master
+ - test -e .use_master || git fetch --no-tags origin "refs/tags/BABL_`cat
.babl_min_version`:refs/tags/MIN_VERSION"
+ - test -e .use_master || git checkout MIN_VERSION
- meson -Dprefix="$BABL_PREFIX" _build
- ninja -C _build
- ninja -C _build install
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]