diff --git a/scripts/test.sh b/scripts/test.sh index 661b9b4618..536f09464b 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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