]> granicus.if.org Git - graphviz/commitdiff
Revert "Revert "Only run macOS CI on graphviz/graphviz repo""
authorMark Hansen <markhansen@google.com>
Mon, 22 Feb 2021 09:33:10 +0000 (20:33 +1100)
committerMark Hansen <markhansen@google.com>
Mon, 22 Feb 2021 09:36:24 +0000 (20:36 +1100)
This reverts commit 77c3b048f198798791193a028a77bf903a5b325e.

And replaces the variable with something that doesn't sound like a
GitLab predefined environment variable, to avoid surprise.

Towards #1951

https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

.gitlab-ci.yml

index 23588978004686ba0ab5d8d8aa3f439b40f143f5..a11ec375919cf4420281a27babf2de2f287c1d7f 100644 (file)
@@ -102,6 +102,15 @@ portable-source:
             metrics: metrics.txt
     except:
         - tags
+    # Most submitters don't have access to the macOS runners, and if they try
+    # to run macOS pipeline jobs, the jobs will hang forever.  This variable is
+    # only set on repos that have access to macOS runners, in GitLab repo
+    # settings.
+    # https://gitlab.com/graphviz/graphviz/-/settings/ci_cd
+    only:
+        variables:
+          - $ENABLE_GRAPHVIZ_MACOS_CI
+
 
 .build_template: &windows_build_definition
     stage: build
@@ -511,6 +520,14 @@ macos-autotools-test:
           artifacts: true
     tags:
         - macos
+    # Most submitters don't have access to the macOS runners, and if they try
+    # to run macOS pipeline jobs, the jobs will hang forever.  This variable is
+    # only set on repos that have access to macOS runners, in GitLab repo
+    # settings.
+    # https://gitlab.com/graphviz/graphviz/-/settings/ci_cd
+    only:
+        variables:
+          - $ENABLE_GRAPHVIZ_MACOS_CI
 
 ubuntu18-04-cmake-test:
     <<: *linux_test_definition
@@ -587,6 +604,14 @@ macos-cmake-test:
           artifacts: true
     tags:
         - macos
+    # Most submitters don't have access to the macOS runners, and if they try
+    # to run macOS pipeline jobs, the jobs will hang forever.  This variable is
+    # only set on repos that have access to macOS runners, in GitLab repo
+    # settings.
+    # https://gitlab.com/graphviz/graphviz/-/settings/ci_cd
+    only:
+        variables:
+          - $ENABLE_GRAPHVIZ_MACOS_CI
 
 deployment:
     stage: deploy