]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Don't fail LGTM test with an error if variables are missing
authorTobias Brunner <tobias@strongswan.org>
Wed, 5 May 2021 16:56:58 +0000 (18:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 5 May 2021 17:11:38 +0000 (19:11 +0200)
That's because forks are currently not allowed to be analyzed by LGTM (unlike
with SonarCloud) so this check can't actually be successful for forks even if
variables are defined.

References strongswan/strongswan#328.

scripts/test.sh

index 536f09464beee4b676e4a956660e5f84585313d6..2028db33db15872ab57fc9abd8b34628f8d427cc 100755 (executable)
@@ -325,7 +325,7 @@ lgtm)
        if [ -z "$LGTM_PROJECT" -o -z "$LGTM_TOKEN" ]; then
                echo "The LGTM_PROJECT and LGTM_TOKEN environment variables" \
                         "are required to run this test"
-               exit 1
+               exit 0
        fi
        DEPS="jq"
        if test -z "$1"; then