.gitlab-ci.yml 894 Bytes
Newer Older
Maxime Buquet's avatar
Maxime Buquet committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
stages:
- lint

.python-3.7:
  image: python:3.7

.python-3.8:
  image: python:3.8

.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
    - pip3 install -e git+https://lab.louiz.org/poezio/slixmpp-omemo.git#egg=slixmpp-omemo
    - pip3 install -e git+https://lab.louiz.org/poezio/poezio.git#egg=poezio
    - python3 setup.py install
    - pylint -E poezio_omemo

.mypy:
  stage: lint
  script:
    - pip3 install mypy
    - mypyc --ignore-missing-imports ./poezio_omemo

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