gitlab-ci: check gradle checksums against official list

This commit is contained in:
Hans-Christoph Steiner 2019-09-09 12:09:01 +02:00
parent c70e2ff056
commit 25548023e0
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
2 changed files with 76 additions and 0 deletions

View file

@ -198,3 +198,21 @@ fedora_latest:
- cd tests
- su testuser --login --command
"cd `pwd`; export ANDROID_HOME=$ANDROID_HOME; fdroid=~testuser/.local/bin/fdroid ./run-tests"
gradle:
image: alpine:3.7
variables:
LANG: C.UTF-8
script:
- apk add --no-cache ca-certificates git python3
# if this is a merge request fork, then only check if makebuildserver changed
- if [ "$CI_PROJECT_NAMESPACE" != "fdroid" ]; then
git fetch https://gitlab.com/fdroid/fdroidserver.git;
for f in `git diff --name-only --diff-filter=d FETCH_HEAD...HEAD`; do
test "$f" == "makebuildserver" && export CHANGED="yes";
done;
test -z "$CHANGED" && exit;
fi
- python3 -m ensurepip
- pip3 install beautifulsoup4 requests
- ./tests/gradle-release-checksums.py