lint: check syntax of countryCode: fields for mirrors

This commit is contained in:
Hans-Christoph Steiner 2023-12-07 17:38:34 +01:00
parent 4511da68b9
commit 96fc49d7fc
4 changed files with 145 additions and 1 deletions

View file

@ -15,11 +15,12 @@ variables:
# * python3-babel for compiling localization files
# * gnupg-agent for the full signing setup
# * python3-clint for fancy progress bars for users
# * python3-pycountry for linting config/mirrors.yml
buildserver run-tests:
image: registry.gitlab.com/fdroid/fdroidserver:buildserver
script:
- apt-get update
- apt-get install gnupg-agent python3-babel python3-clint
- apt-get install gnupg-agent python3-babel python3-clint python3-pycountry
- ./tests/run-tests
# make sure that translations do not cause stacktraces
- cd $CI_PROJECT_DIR/locale
@ -152,6 +153,9 @@ ubuntu_jammy_pip:
- $pip install sdkmanager
- sdkmanager 'build-tools;33.0.0'
# pycountry is only for linting config/mirrors.yml, so its not in setup.py
- $pip install pycountry
- $pip install dist/fdroidserver-*.tar.gz
- tar xzf dist/fdroidserver-*.tar.gz
- cd fdroidserver-*