Add Python 3.6 and 3.10 support, fixes #53

This commit is contained in:
Yohann D'ANELLO
2020-12-20 17:54:33 +01:00
parent 0b9606cbfe
commit 8afa082708
2 changed files with 44 additions and 10 deletions

View File

@@ -3,21 +3,16 @@ stages:
- quality-assurance
- build
py37:
stage: test
image: python:3.7-alpine
before_script:
- apk add --no-cache gettext
- pip install tox
script: tox -e py3
py38:
py310:
stage: test
image: python:3.8-alpine
image: python:rc-alpine
before_script:
- apk add --no-cache gettext
- pip install tox
script: tox -e py3
only:
- master
py39:
@@ -28,6 +23,38 @@ py39:
- pip install tox
script: tox -e py3
py38:
stage: test
image: python:3.8-alpine
before_script:
- apk add --no-cache gettext
- pip install tox
script: tox -e py3
py37:
stage: test
image: python:3.7-alpine
before_script:
- apk add --no-cache gettext
- pip install tox
script: tox -e py3
only:
- master
py36:
stage: test
image: python:3.6-alpine
before_script:
- apk add --no-cache gettext
- pip install tox
script: tox -e py3
only:
- master
linters:
stage: quality-assurance
image: python:3-alpine
@@ -36,11 +63,15 @@ linters:
script: tox -e linters
allow_failure: true
build-deb:
image: debian:buster-slim
stage: build
before_script:
- apt-get update && apt-get -y --no-install-recommends install build-essential debmake dh-python debhelper gettext python3-all python3-setuptools
- >
apt-get update && apt-get -y --no-install-recommends install
build-essential debmake dh-python debhelper gettext python3-all
python3-setuptools
script:
- dpkg-buildpackage
- mkdir build && cp ../*.deb build/