mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-05-17 03:09:11 +00:00
add checkupdate pipeline
This commit is contained in:
parent
7702b29bbe
commit
a43c511d07
1 changed files with 28 additions and 0 deletions
|
|
@ -3,6 +3,34 @@ variables:
|
|||
pip: pip3 --timeout 100 --retries 10
|
||||
|
||||
|
||||
checkupdates:
|
||||
image: registry.gitlab.com/fdroid/ci-images-base
|
||||
except:
|
||||
- pipelines
|
||||
- schedules
|
||||
- triggers
|
||||
before_script:
|
||||
- |
|
||||
set -xe
|
||||
apt-get update
|
||||
apt-get -qy dist-upgrade
|
||||
cd ..
|
||||
rm -rf fdroidserver
|
||||
mkdir fdroidserver
|
||||
git ls-remote https://gitlab.com/fdroid/fdroidserver.git master
|
||||
curl --silent https://gitlab.com/fdroid/fdroidserver/-/archive/master/fdroidserver-master.tar.gz | tar -xz --directory=fdroidserver --strip-components=1
|
||||
export PATH="$PWD/fdroidserver:$PATH"
|
||||
cd -
|
||||
script: |
|
||||
set -xe
|
||||
if [ "$CI_PROJECT_NAMESPACE" = "fdroid" ]; then echo "not testing in fdroid"; exit 0; fi
|
||||
git fetch https://gitlab.com/fdroid/fdroiddata.git
|
||||
appids=$(git diff --name-only --diff-filter=d FETCH_HEAD...HEAD "metadata/*.yml" | sed -n -e 's,^metadata/\([^/][^/]*\)\.yml,\1,p')
|
||||
if [ -n "$appids" ]; then
|
||||
fdroid checkupdates --auto -v $appids
|
||||
git --no-pager diff --color=always --exit-code
|
||||
fi
|
||||
|
||||
lint:
|
||||
image: registry.gitlab.com/fdroid/ci-images-base
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue