.gitlab-ci.yml 2.13 KB
Newer Older
mathieui's avatar
mathieui committed
1
stages:
2
  - lint
mathieui's avatar
mathieui committed
3
  - test
4
  - build
mathieui's avatar
mathieui committed
5

mathieui's avatar
mathieui committed
6 7
build-doc:
  stage: build
8 9 10 11 12
  only:
    - branches@poezio/poezio
  tags:
    - www
  image: docker.louiz.org/poezio/poezio/doc-builder
mathieui's avatar
mathieui committed
13
  script:
14
    - ./update.sh
15
    - . ./poezio-venv/bin/activate
16
    - pip install sphinx --ignore-installed
mathieui's avatar
mathieui committed
17
    - make doc
18 19
    - rm -rf /www/latest
    - mv doc/build/html/ /www/latest
20

mathieui's avatar
mathieui committed
21 22
build-ubuntu:
  stage: build
mathieui's avatar
mathieui committed
23
  image: python:3
mathieui's avatar
mathieui committed
24 25 26 27 28 29 30
  script:
    - python3 setup.py sdist
    - python3 setup.py bdist
  artifacts:
    expire_in: 2 weeks
    paths:
      - dist/
mathieui's avatar
mathieui committed
31 32
  only:
    - master
mathieui's avatar
mathieui committed
33

34
security-check:
35
  stage: lint
36 37 38 39 40
  image: python:3
  script:
    - pip3 install safety
    - safety check -r requirements.txt

mathieui's avatar
mathieui committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54
pytest-3.7:
  stage: test
  image: python:3.7
  script:
    - apt-get update && apt-get install -y libidn11-dev
    - git clone git://git.louiz.org/slixmpp
    - pip3 install pytest pyasn1-modules cffi --upgrade
    - cd slixmpp
    - python3 setup.py install
    - cd ..
    - python3 setup.py install
    - py.test -v test/


55
pytest-latest:
mathieui's avatar
mathieui committed
56
  stage: test
mathieui's avatar
mathieui committed
57
  image: python:3
louiz’'s avatar
louiz’ committed
58
  script:
mathieui's avatar
mathieui committed
59
    - apt-get update && apt-get install -y libidn11-dev
louiz’'s avatar
louiz’ committed
60
    - git clone git://git.louiz.org/slixmpp
mathieui's avatar
mathieui committed
61 62
    - pip3 install pytest pyasn1-modules cffi --upgrade
    - cd slixmpp
louiz’'s avatar
louiz’ committed
63
    - python3 setup.py install
mathieui's avatar
mathieui committed
64
    - cd ..
mathieui's avatar
mathieui committed
65 66
    - python3 setup.py install
    - py.test -v test/
mathieui's avatar
mathieui committed
67

68
pylint-latest:
69
  stage: lint
70
  allow_failure: true
71 72 73 74 75 76 77 78 79 80 81
  image: python:3
  script:
    - apt-get update && apt-get install -y libidn11-dev
    - git clone git://git.louiz.org/slixmpp
    - pip3 install pylint pyasn1-modules cffi --upgrade
    - cd slixmpp
    - python3 setup.py install
    - cd ..
    - python3 setup.py install
    - pylint -E poezio

mathieui's avatar
mathieui committed
82
pylint-plugins:
83
  stage: lint
mathieui's avatar
mathieui committed
84 85 86 87 88
  image: python:3
  allow_failure: true
  script:
    - apt-get update && apt-get install -y libidn11-dev
    - pip3 install pylint pyasn1-modules cffi --upgrade
89
    - pip3 install -e git+git://git.louiz.org/slixmpp#egg=slixmpp
mathieui's avatar
mathieui committed
90 91 92
    - pip3 install -r requirements-plugins.txt
    - python3 setup.py install
    - pylint -E plugins
93 94 95 96 97 98 99 100

mypyc:
  stage: lint
  image: python:3
  allow_failure: true
  script:
    - pip3 install mypy
    - mypyc --ignore-missing-imports ./poezio