From: Mark Hansen Date: Mon, 22 Feb 2021 09:33:10 +0000 (+1100) Subject: Revert "Revert "Only run macOS CI on graphviz/graphviz repo"" X-Git-Tag: 2.47.0~44^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b3c4cc2b48c58d01619c43e752c8394cae3d9c1;p=graphviz Revert "Revert "Only run macOS CI on graphviz/graphviz repo"" 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 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 235889780..a11ec3759 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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