gitlab CI: invert the ci-templates check
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 22 Mar 2020 01:51:01 +0000 (11:51 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 23 Mar 2020 07:05:28 +0000 (07:05 +0000)
This makes the config file simpler, use a variable that is default false but
true where we need it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci/ci.template
.gitlab-ci/config.yml

index ccf158f..50308fb 100644 (file)
@@ -37,7 +37,7 @@
 
 include:
   {% for distro in distributions|sort(attribute="name") %}
-  {% if distro.ci_templates %}
+  {% if not distro.does_not_have_ci_templates %}
   # {{ distro.name.capitalize() }} container builder template
   - project: 'freedesktop/ci-templates'
     ref: *template_sha
index f97b2d5..6e930f6 100644 (file)
@@ -13,18 +13,15 @@ distributions:
       - '31'
       - '32'
     want_qemu: true
-    ci_templates: true
   - name: ubuntu
     tag: *default_tag
     versions:
       - '19.10'
       - '19.04'
-    ci_templates: true
   - name: arch
     tag: *default_tag
     versions:
       - 'rolling'
-    ci_templates: true
   - name: alpine
     tag: *default_tag
     versions:
@@ -36,10 +33,9 @@ distributions:
         # for any tcase_add_exit_test/tcase_add_test_raise_signal
         # but someone more invested in musl will have to figure that out.
         - "MESON_TEST_ARGS: '' # litest-selftest fails on musl"
-    ci_templates: true
   - name: freebsd
     tag: *default_tag
-    ci_templates: false
+    does_not_have_ci_templates: true
 
 test_suites:
   - name: touchpad