mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-27 00:00:29 -05:00
github: Fail LGTM test if required environment variables aren't set
Closes strongswan/strongswan#328.
This commit is contained in:
parent
cd7b80e869
commit
260e7b55f6
@ -322,8 +322,12 @@ apidoc)
|
|||||||
TARGET=apidoc
|
TARGET=apidoc
|
||||||
;;
|
;;
|
||||||
lgtm)
|
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"
|
DEPS="jq"
|
||||||
|
|
||||||
if test -z "$1"; then
|
if test -z "$1"; then
|
||||||
base=$COMMIT_BASE
|
base=$COMMIT_BASE
|
||||||
# after rebases or for new/duplicate branches, the passed base commit
|
# after rebases or for new/duplicate branches, the passed base commit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user