1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

gitlab-ci: combine all lint/syntax/safety checks into a single job

This should make it easier to accept merge requests where there are only
cosmetic problems with them.  pep8/pylint/pyflakes runs can then be disabled
in the 'test' job by not installing the in the ci-images-server base image.
This commit is contained in:
Hans-Christoph Steiner 2018-05-25 12:12:40 +02:00
parent 5ff1b5ef37
commit 14127bf418

View File

@ -121,24 +121,17 @@ pip_install:
- fdroid readmeta - fdroid readmeta
- fdroid update --help - fdroid update --help
pyup_io_safety_check: lint_format_safety_checks:
image: alpine:3.7 image: alpine:3.7
variables: variables:
LANG: C.UTF-8 LANG: C.UTF-8
script: script:
- apk add --no-cache ca-certificates python3 - apk add --no-cache bash dash ca-certificates python3
- python3 -m ensurepip - python3 -m ensurepip
- pip3 install safety - pip3 install pep8 pyflakes pylint safety
- safety check --full-report - export EXITVALUE=0
- ./hooks/pre-commit || export EXITVALUE=1
pylint: - safety check --full-report || export EXITVALUE=1
image: alpine:3.7
variables:
LANG: C.UTF-8
script:
- apk add --no-cache ca-certificates python3
- python3 -m ensurepip
- pip3 install pylint
- pylint --rcfile=.pylint-rcfile --output-format=colorized --reports=n - pylint --rcfile=.pylint-rcfile --output-format=colorized --reports=n
fdroid fdroid
makebuildserver makebuildserver
@ -146,6 +139,8 @@ pylint:
fdroidserver/*.py fdroidserver/*.py
tests/*.py tests/*.py
tests/*.TestCase tests/*.TestCase
|| export EXITVALUE=1
- exit $EXITVALUE
fedora_latest: fedora_latest:
image: fedora:latest image: fedora:latest