summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-02-24 10:12:00 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-02-24 10:21:53 +1000
commit2e7dd3f84e592f348590220740747b9b682902a2 (patch)
tree4e997c8991d2742ab2f36babc0e57dd5380c3e9c /.gitlab-ci
parent7850e4aecd188bcc3779957a670017e3edb9bced (diff)
downloadlibinput-2e7dd3f84e592f348590220740747b9b682902a2.tar.gz
gitlab CI: fail the sanity check stage if the fork is not public
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/ci.template14
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template
index 640de801..9839d6db 100644
--- a/.gitlab-ci/ci.template
+++ b/.gitlab-ci/ci.template
@@ -127,6 +127,20 @@ variables:
# #
#################################################################
+fail-if-fork-is-not-public:
+ stage: sanity check
+ script:
+ - |
+ if [ $CI_PROJECT_VISIBILITY != "public" ]; then
+ echo "*************************************************************************************"
+ echo "Project visibility must be set to 'public'"
+ echo "Change this in $CI_PROJECT_URL/edit under 'Visibility, project features, permissions'"
+ echo "*************************************************************************************"
+ exit 1
+ fi
+ except:
+ - main@libinput/libinput
+
# Re-generate the CI script and make sure it's the one currently checked in
# If this job fails, re-generate the gitlab-ci.yml script, see
# $SRCDIR/.gitlab-ci/generate-gitlab-ci.py