X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=scripts%2Ftest.sh;h=661b9b46189f969bd62a91e6a72123c5aa31c9d1;hp=97f1a352dbf606492e625f3971261dc888882c96;hb=cd7b80e86996959b16cc26231d343abc27bb720c;hpb=f830e714574eaaa78ed4e68fae93256aaed42612;ds=sidebyside diff --git a/scripts/test.sh b/scripts/test.sh index 97f1a35..661b9b4 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -335,12 +335,11 @@ lgtm) base=$(git merge-base origin/master ${COMMIT_ID}) fi base=$(git rev-parse $base) - project_id=1506185006272 echo "Starting code review for $COMMIT_ID (base $base) on lgtm.com" git diff --binary $base > lgtm.patch || exit $? curl -s -X POST --data-binary @lgtm.patch \ - "https://lgtm.com/api/v1.0/codereviews/${project_id}?base=${base}&external-id=${BUILD_NUMBER}" \ + "https://lgtm.com/api/v1.0/codereviews/${LGTM_PROJECT}?base=${base}&external-id=${BUILD_NUMBER}" \ -H 'Content-Type: application/octet-stream' \ -H 'Accept: application/json' \ -H "Authorization: Bearer ${LGTM_TOKEN}" > lgtm.res || exit $?