2021-12-15 00:13:45 +00:00
|
|
|
---
|
|
|
|
|
2020-03-11 00:24:48 +00:00
|
|
|
stages:
|
2021-12-15 00:13:45 +00:00
|
|
|
- lint
|
2020-03-11 00:24:48 +00:00
|
|
|
|
|
|
|
.python-3.7:
|
|
|
|
image: python:3.7
|
|
|
|
|
|
|
|
.python-3.8:
|
|
|
|
image: python:3.8
|
|
|
|
|
2021-12-15 00:13:45 +00:00
|
|
|
.python-3.9:
|
|
|
|
image: python:3.9
|
|
|
|
|
|
|
|
.python-3.10:
|
|
|
|
image: python:3.10
|
|
|
|
|
2020-03-11 00:24:48 +00:00
|
|
|
.pylint:
|
|
|
|
stage: lint
|
|
|
|
script:
|
|
|
|
- apt update && apt install -y libidn11-dev build-essential cmake
|
|
|
|
- pip3 install pylint pyasn1-modules cffi --upgrade
|
|
|
|
- pip3 install -e git+https://lab.louiz.org/poezio/slixmpp.git#egg=slixmpp
|
|
|
|
- python3 setup.py install
|
|
|
|
- pylint -E slixmpp_omemo
|
2020-03-11 00:26:34 +00:00
|
|
|
allow_failure: true
|
2020-03-11 00:24:48 +00:00
|
|
|
|
|
|
|
.mypy:
|
|
|
|
stage: lint
|
|
|
|
script:
|
|
|
|
- pip3 install mypy
|
|
|
|
- mypyc --ignore-missing-imports ./slixmpp_omemo
|
2020-03-11 00:26:34 +00:00
|
|
|
allow_failure: true
|
2020-03-11 00:24:48 +00:00
|
|
|
|
|
|
|
lint-3.7-pylint:
|
|
|
|
extends:
|
|
|
|
- .python-3.7
|
|
|
|
- .pylint
|
|
|
|
|
|
|
|
lint-3.8-pylint:
|
|
|
|
extends:
|
|
|
|
- .python-3.8
|
|
|
|
- .pylint
|
|
|
|
|
|
|
|
lint-3.7-mypy:
|
|
|
|
extends:
|
|
|
|
- .python-3.7
|
|
|
|
- .mypy
|
|
|
|
|
|
|
|
lint-3.8-mypy:
|
|
|
|
extends:
|
|
|
|
- .python-3.8
|
|
|
|
- .mypy
|
2021-12-15 00:13:45 +00:00
|
|
|
|
|
|
|
lint-3.9-pylint:
|
|
|
|
extends:
|
|
|
|
- .python-3.9
|
|
|
|
- .pylint
|
|
|
|
|
|
|
|
lint-3.9-mypy:
|
|
|
|
extends:
|
|
|
|
- .python-3.9
|
|
|
|
- .mypy
|
|
|
|
|
|
|
|
lint-3.10-pylint:
|
|
|
|
extends:
|
|
|
|
- .python-3.10
|
|
|
|
- .pylint
|
|
|
|
|
|
|
|
lint-3.10-mypy:
|
|
|
|
extends:
|
|
|
|
- .python-3.10
|
|
|
|
- .mypy
|