2017-11-14 23:44:26 +00:00
|
|
|
stages:
|
2019-10-27 13:51:27 +00:00
|
|
|
- lint
|
2017-11-14 23:44:26 +00:00
|
|
|
- test
|
2017-12-01 18:03:46 +00:00
|
|
|
- build
|
2017-11-14 23:44:26 +00:00
|
|
|
|
2017-11-20 20:04:22 +00:00
|
|
|
build-doc:
|
|
|
|
stage: build
|
2018-08-19 21:17:19 +00:00
|
|
|
only:
|
2020-09-08 13:51:30 +00:00
|
|
|
- main@poezio/poezio
|
2018-08-19 21:17:19 +00:00
|
|
|
tags:
|
|
|
|
- www
|
2020-05-22 21:36:50 +00:00
|
|
|
image: python:3
|
2017-11-20 20:04:22 +00:00
|
|
|
script:
|
2018-08-19 21:17:19 +00:00
|
|
|
- ./update.sh
|
2018-10-13 11:44:37 +00:00
|
|
|
- . ./poezio-venv/bin/activate
|
2019-10-18 19:46:30 +00:00
|
|
|
- pip install sphinx --ignore-installed
|
2017-11-20 20:04:22 +00:00
|
|
|
- make doc
|
2018-08-19 21:17:19 +00:00
|
|
|
- rm -rf /www/latest
|
|
|
|
- mv doc/build/html/ /www/latest
|
2017-11-20 19:50:24 +00:00
|
|
|
|
2017-11-14 23:44:26 +00:00
|
|
|
build-ubuntu:
|
|
|
|
stage: build
|
2018-07-21 14:57:34 +00:00
|
|
|
image: python:3
|
2017-11-14 23:44:26 +00:00
|
|
|
script:
|
|
|
|
- python3 setup.py sdist
|
|
|
|
- python3 setup.py bdist
|
|
|
|
artifacts:
|
|
|
|
expire_in: 2 weeks
|
|
|
|
paths:
|
|
|
|
- dist/
|
2018-07-21 14:57:34 +00:00
|
|
|
only:
|
2020-09-08 13:51:30 +00:00
|
|
|
- main
|
2017-11-14 23:44:26 +00:00
|
|
|
|
2017-11-20 19:50:24 +00:00
|
|
|
security-check:
|
2019-10-27 13:51:27 +00:00
|
|
|
stage: lint
|
2017-11-20 19:50:24 +00:00
|
|
|
image: python:3
|
|
|
|
script:
|
|
|
|
- pip3 install safety
|
|
|
|
- safety check -r requirements.txt
|
|
|
|
|
2019-10-27 19:05:00 +00:00
|
|
|
pytest-3.7:
|
|
|
|
stage: test
|
|
|
|
image: python:3.7
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
2021-01-02 13:00:26 +00:00
|
|
|
- git clone https://lab.louiz.org/poezio/slixmpp.git
|
2019-10-27 19:05:00 +00:00
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
|
|
|
- python3 setup.py install
|
|
|
|
- cd ..
|
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
|
|
|
|
2021-06-25 19:58:13 +00:00
|
|
|
pytest-3.8:
|
|
|
|
stage: test
|
|
|
|
image: python:3.8
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
|
|
|
- git clone https://lab.louiz.org/poezio/slixmpp.git
|
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
|
|
|
- python3 setup.py install
|
|
|
|
- cd ..
|
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
2019-10-27 19:05:00 +00:00
|
|
|
|
2021-06-25 19:58:13 +00:00
|
|
|
pytest-3.9:
|
2018-07-23 17:43:01 +00:00
|
|
|
stage: test
|
2021-06-25 19:58:13 +00:00
|
|
|
image: python:3.9
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
|
|
|
- git clone https://lab.louiz.org/poezio/slixmpp.git
|
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
|
|
|
- python3 setup.py install
|
|
|
|
- cd ..
|
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
|
|
|
|
|
|
|
pytest-3.10:
|
|
|
|
stage: test
|
2022-07-17 18:05:44 +00:00
|
|
|
image: python:3.10
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
|
|
|
- git clone https://lab.louiz.org/poezio/slixmpp.git
|
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
|
|
|
- python3 setup.py install
|
|
|
|
- cd ..
|
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
|
|
|
|
|
|
|
pytest-3.11:
|
|
|
|
stage: test
|
|
|
|
image: python:3.11-rc
|
|
|
|
allow_failure: true
|
2016-12-04 23:21:20 +00:00
|
|
|
script:
|
2018-07-21 14:57:34 +00:00
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
2021-01-02 13:00:26 +00:00
|
|
|
- git clone https://lab.louiz.org/poezio/slixmpp.git
|
2018-07-21 14:57:34 +00:00
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
2016-12-04 23:21:20 +00:00
|
|
|
- python3 setup.py install
|
2018-07-21 14:57:34 +00:00
|
|
|
- cd ..
|
2017-11-14 23:44:26 +00:00
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
2018-07-21 14:57:34 +00:00
|
|
|
|
2018-08-08 22:56:59 +00:00
|
|
|
pylint-plugins:
|
2019-10-27 13:51:27 +00:00
|
|
|
stage: lint
|
2018-08-08 22:56:59 +00:00
|
|
|
image: python:3
|
|
|
|
allow_failure: true
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
|
|
|
- pip3 install pylint pyasn1-modules cffi --upgrade
|
2021-01-02 13:00:26 +00:00
|
|
|
- pip3 install -e git+https://lab.louiz.org/poezio/slixmpp.git#egg=slixmpp
|
2018-08-08 22:56:59 +00:00
|
|
|
- pip3 install -r requirements-plugins.txt
|
|
|
|
- python3 setup.py install
|
|
|
|
- pylint -E plugins
|
2019-10-27 13:51:27 +00:00
|
|
|
|
2022-07-17 18:05:44 +00:00
|
|
|
mypy-fixed:
|
2019-10-27 13:51:27 +00:00
|
|
|
stage: lint
|
|
|
|
image: python:3
|
2022-07-17 18:05:44 +00:00
|
|
|
script:
|
2022-08-21 15:40:26 +00:00
|
|
|
- pip3 install mypy==0.971 types-setuptools
|
2022-07-17 18:05:44 +00:00
|
|
|
- mypy --ignore-missing-imports ./poezio
|
|
|
|
- mypy --ignore-missing-imports ./plugins
|
|
|
|
|
|
|
|
mypy-latest:
|
|
|
|
stage: lint
|
|
|
|
image: python:3
|
|
|
|
allow_failure: true
|
2019-10-27 13:51:27 +00:00
|
|
|
script:
|
2022-01-29 22:39:57 +00:00
|
|
|
- pip3 install mypy types-setuptools
|
2021-03-26 17:12:54 +00:00
|
|
|
- mypy --ignore-missing-imports ./poezio
|
|
|
|
- mypy --ignore-missing-imports ./plugins
|