summaryrefslogtreecommitdiffstats
path: root/packaging/macos/jhb/etc/jhb.conf/ci.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /packaging/macos/jhb/etc/jhb.conf/ci.sh
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/macos/jhb/etc/jhb.conf/ci.sh')
-rw-r--r--packaging/macos/jhb/etc/jhb.conf/ci.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/packaging/macos/jhb/etc/jhb.conf/ci.sh b/packaging/macos/jhb/etc/jhb.conf/ci.sh
new file mode 100644
index 0000000..727cb2a
--- /dev/null
+++ b/packaging/macos/jhb/etc/jhb.conf/ci.sh
@@ -0,0 +1,42 @@
+# SPDX-FileCopyrightText: 2021 René de Hesselle <dehesselle@web.de>
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+### description ################################################################
+
+# check if running in CI (GitHub or GitLab)
+
+### shellcheck #################################################################
+
+# shellcheck shell=bash # no shebang as this file is intended to be sourced
+# shellcheck disable=SC2034 # we only use exports if we really need them
+
+### variables ##################################################################
+
+if [ -z "$CI" ]; then # both GitHub and GitLab set this
+ CI=false
+ CI_GITHUB=false
+ CI_GITLAB=false
+else
+ CI=true
+
+ if [ -z "$CI_PROJECT_NAME" ]; then # this is a GitLab-only variable
+ CI_GITHUB=true
+ CI_GITLAB=false
+ else
+ CI_GITHUB=false
+ CI_GITLAB=true
+
+ # Since GitLab uses colors in their CI there's no need to disable ours.
+ # shellcheck disable=SC2034 # this is a bash_d setting
+ ANSI_TERM_ONLY=false # use ANSI control characters even if not in terminal
+ fi
+fi
+
+### functions ##################################################################
+
+# Nothing here.
+
+### main #######################################################################
+
+# Nothing here. \ No newline at end of file