forked from Github-Mirrors/canaille
59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
---
|
|
image: python
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
- release
|
|
|
|
before_script:
|
|
- echo deb http://deb.debian.org/debian bullseye-backports main contrib non-free >> /etc/apt/sources.list
|
|
- apt update
|
|
- env apt install --yes python3-dev libldap2-dev libsasl2-dev libssl-dev
|
|
- env DEBIAN_FRONTEND=noninteractive apt -t bullseye-backports install --yes slapd ldap-utils
|
|
- curl -O https://bootstrap.pypa.io/get-pip.py
|
|
- python get-pip.py
|
|
- pip install --upgrade tox "poetry>1.3.0" coveralls pyyaml tomli
|
|
|
|
style:
|
|
image: python:3.11
|
|
stage: test
|
|
script: tox -e style
|
|
|
|
python37:
|
|
image: python:3.7
|
|
stage: test
|
|
script: tox -e py37
|
|
|
|
python38:
|
|
image: python:3.8
|
|
stage: test
|
|
script: tox -e py38
|
|
|
|
python39:
|
|
image: python:3.9
|
|
stage: test
|
|
script: tox -e py39
|
|
|
|
python310:
|
|
image: python:3.10
|
|
stage: test
|
|
script: tox -e py310
|
|
|
|
python311:
|
|
image: python:3.11
|
|
stage: test
|
|
script: tox -e py311
|
|
|
|
doc:
|
|
image: python:3.11
|
|
stage: test
|
|
script: tox -e doc
|
|
|
|
coverage:
|
|
image: python:3.11
|
|
stage: test
|
|
allow_failure: true
|
|
script:
|
|
- tox -e coverage
|
|
- coveralls
|