poezio/.gitlab-ci.yml

101 lines
2 KiB
YAML
Raw Permalink Normal View History

2017-11-14 23:44:26 +00:00
stages:
- lint
2017-11-14 23:44:26 +00:00
- test
- build
2017-11-14 23:44:26 +00:00
2017-11-20 20:04:22 +00:00
build-doc:
stage: build
only:
- main@poezio/poezio
tags:
- www
image: python:3
2017-11-20 20:04:22 +00:00
script:
- ./update.sh
- . ./poezio-venv/bin/activate
- pip install sphinx --ignore-installed
2017-11-20 20:04:22 +00:00
- make doc
- rm -rf /www/latest
- mv doc/build/html/ /www/latest
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:
- main
2017-11-14 23:44:26 +00:00
security-check:
stage: lint
image: python:3
script:
- pip3 install safety
- safety check -r requirements.txt
2018-10-17 03:12:21 +00:00
.poezio-tests:
script:
2021-01-02 13:00:26 +00:00
- git clone https://lab.louiz.org/poezio/slixmpp.git
2018-10-17 03:12:21 +00:00
- pip3 install pytest pyasn1-modules cffi setuptools-rust --upgrade
- cd slixmpp
- python3 setup.py install
- cd ..
- python3 setup.py install
- py.test -v test/
- cargo test
2018-10-17 03:12:21 +00:00
pytest-3.7:
stage: test
image: docker.louiz.org/poezio/poezio:rust-python3.7
2018-10-17 03:12:21 +00:00
extends:
- .poezio-tests
pytest-3.8:
stage: test
image: docker.louiz.org/poezio/poezio:rust-python3.8
2018-10-17 03:12:21 +00:00
extends:
- .poezio-tests
pytest-3.9:
2018-07-23 17:43:01 +00:00
stage: test
image: docker.louiz.org/poezio/poezio:rust-python3.9
2018-10-17 03:12:21 +00:00
extends:
- .poezio-tests
pytest-3.10:
stage: test
image: docker.louiz.org/poezio/poezio:rust-python3.10
2018-10-17 03:12:21 +00:00
extends:
- .poezio-tests
2018-07-21 14:57:34 +00:00
2018-08-08 22:56:59 +00:00
pylint-plugins:
stage: lint
image: docker.louiz.org/poezio/poezio:rust-python3.10
2018-08-08 22:56:59 +00:00
allow_failure: true
script:
2018-10-17 03:12:21 +00:00
- pip3 install pylint pyasn1-modules cffi setuptools-rust --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
rust-lint:
stage: lint
image: docker.louiz.org/poezio/poezio:rust-python3.10
script:
- cargo fmt --check
- cargo clippy --no-deps
mypy:
stage: lint
image: python:3
script:
2022-01-29 22:39:57 +00:00
- pip3 install mypy types-setuptools
- mypy --ignore-missing-imports ./poezio
- mypy --ignore-missing-imports ./plugins