fdroiddata/.gitlab-ci.yml
Hans-Christoph Steiner 5115d51d8c gitlab-ci: use server image from https://gitlab.com/fdroid/ci-images
This image provides everything needed to run all aspects of fdroidserver,
and is only like 100 megs bigger than the base image that this was using
before.
2017-04-04 21:56:20 +02:00

21 lines
575 B
YAML

image: registry.gitlab.com/fdroid/ci-images:server-latest
before_script:
- rm -rf fdroidserver
- git clone --depth=1 https://gitlab.com/fdroid/fdroidserver.git
- export PATH="$PWD/fdroidserver:$PATH"
- touch config.py
lint:
script:
- export EXITVALUE=0
- fdroid lint -f || {
export EXITVALUE=1;
printf "\nThese files have lint issues:\n";
fdroid rewritemeta -l;
printf "\nThese are the formatting issues:\n";
fdroid rewritemeta;
git --no-pager diff --color=always;
}
- exit $EXITVALUE