CI: make the meson-build.sh script even more generic
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 5 Jan 2023 23:34:43 +0000 (09:34 +1000)
committerJosé Expósito <jose.exposito89@gmail.com>
Fri, 6 Jan 2023 10:16:33 +0000 (10:16 +0000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci/meson-build.sh

index 5bcfffa2f55273a4f489396cd1b5c205f095307d..1f98dbab8b9d70d7166c8790538ccfdc19f0abb2 100755 (executable)
@@ -44,8 +44,9 @@ fi
 # run and debug locally.
 if [[ -z "$CI_JOB_ID" ]] || [[ -z "$CI_JOB_NAME" ]]; then
        echo "Missing \$CI_JOB_ID or \$CI_JOB_NAME".
+       CI_PROJECT_NAME=$(basename "$PWD")
        CI_JOB_ID=$(date +%s)
-       CI_JOB_NAME='libinput-job-local'
+       CI_JOB_NAME="$CI_PROJECT_NAME-job-local"
        echo "Simulating gitlab environment: "
        echo " CI_JOB_ID=$CI_JOB_ID"
        echo " CI_JOB_NAME=$CI_JOB_NAME"