mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-18 20:50:10 +01:00
move pylint run to standalone gitlab-ci job
This commit is contained in:
parent
3c9cc59c38
commit
54b21a6d22
@ -107,6 +107,22 @@ pyup_io_safety_check:
|
|||||||
- pip install safety
|
- pip install safety
|
||||||
- safety check --full-report
|
- safety check --full-report
|
||||||
|
|
||||||
|
pylint:
|
||||||
|
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
|
||||||
|
fdroid
|
||||||
|
makebuildserver
|
||||||
|
setup.py
|
||||||
|
fdroidserver/*.py
|
||||||
|
tests/*.py
|
||||||
|
tests/*.TestCase
|
||||||
|
|
||||||
fedora_latest:
|
fedora_latest:
|
||||||
image: fedora:latest
|
image: fedora:latest
|
||||||
only:
|
only:
|
||||||
|
@ -74,19 +74,3 @@ test -e $WORKSPACE/env/share/locale/de/LC_MESSAGES/fdroidserver.mo
|
|||||||
|
|
||||||
# run tests in new pip+pyvenv install
|
# run tests in new pip+pyvenv install
|
||||||
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
|
||||||
# run pylint
|
|
||||||
|
|
||||||
# only run it where it will work, for example, the pyvenvs above don't have pylint
|
|
||||||
if which pylint3 && python3 -c "import pylint" 2> /dev/null; then
|
|
||||||
cd $WORKSPACE
|
|
||||||
pylint3 --rcfile=.pylint-rcfile --output-format=colorized --reports=n \
|
|
||||||
fdroid \
|
|
||||||
makebuildserver \
|
|
||||||
setup.py \
|
|
||||||
fdroidserver/*.py \
|
|
||||||
tests/*.py \
|
|
||||||
tests/*.TestCase
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user