gitlab-ci: only check commits included in the current merge request

This commit is contained in:
Hans-Christoph Steiner 2018-02-28 22:08:20 +01:00
parent 303d03f28c
commit 253a1b144c

View file

@ -14,7 +14,7 @@ lint:
- if [ "$CI_PROJECT_NAMESPACE" != "fdroid" ]; then
git fetch https://gitlab.com/fdroid/fdroiddata;
test -d build || mkdir build;
for f in `git diff --name-only FETCH_HEAD`; do
for f in `git diff --name-only FETCH_HEAD...HEAD`; do
appid=`echo $f | sed -n -e 's,^metadata/\([^/][^/]*\)\.txt,\1,p'
-e 's,^metadata/\([^/][^/]*\)\.yml,\1,p'`;
export CHANGED="$CHANGED $appid";