github: Fail LGTM test if required environment variables aren't set

Closes strongswan/strongswan#328.
This commit is contained in:
Noel Kuntze authored and Tobias Brunner committed 2021-05-05 18:12:25 +02:00
1 parent cd7b80e869
commit 260e7b55f6
1 file changed
+5 -1
+5 -1
View File
@@ -322,8 +322,12 @@ apidoc)
TARGET=apidoc
;;
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
fi
DEPS="jq"
if test -z "$1"; then
base=$COMMIT_BASE
# after rebases or for new/duplicate branches, the passed base commit