2020-10-02 13:48:39 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- quality-assurance
|
2020-11-19 03:01:02 +00:00
|
|
|
- build
|
2020-10-02 13:48:39 +00:00
|
|
|
|
2020-12-20 16:54:33 +00:00
|
|
|
|
|
|
|
py310:
|
2020-11-11 21:50:14 +00:00
|
|
|
stage: test
|
2020-12-20 16:54:33 +00:00
|
|
|
image: python:rc-alpine
|
|
|
|
before_script:
|
|
|
|
- apk add --no-cache gettext
|
|
|
|
- pip install tox
|
|
|
|
script: tox -e py3
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
|
|
|
py39:
|
|
|
|
stage: test
|
|
|
|
image: python:3.9-alpine
|
2020-11-11 21:50:14 +00:00
|
|
|
before_script:
|
2020-11-28 13:02:23 +00:00
|
|
|
- apk add --no-cache gettext
|
2020-11-11 21:50:14 +00:00
|
|
|
- pip install tox
|
|
|
|
script: tox -e py3
|
|
|
|
|
2020-12-20 16:54:33 +00:00
|
|
|
|
2020-10-02 13:48:39 +00:00
|
|
|
py38:
|
|
|
|
stage: test
|
2020-10-09 12:34:03 +00:00
|
|
|
image: python:3.8-alpine
|
2020-10-02 13:48:39 +00:00
|
|
|
before_script:
|
2020-11-28 13:02:23 +00:00
|
|
|
- apk add --no-cache gettext
|
2020-10-02 13:48:39 +00:00
|
|
|
- pip install tox
|
2020-11-11 21:50:14 +00:00
|
|
|
script: tox -e py3
|
2020-10-02 13:48:39 +00:00
|
|
|
|
2020-10-09 12:34:03 +00:00
|
|
|
|
2020-12-20 16:54:33 +00:00
|
|
|
py37:
|
2020-10-09 12:34:03 +00:00
|
|
|
stage: test
|
2020-12-20 16:54:33 +00:00
|
|
|
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
|
2020-10-09 12:34:03 +00:00
|
|
|
before_script:
|
2020-11-28 13:02:23 +00:00
|
|
|
- apk add --no-cache gettext
|
2020-10-09 12:34:03 +00:00
|
|
|
- pip install tox
|
2020-11-11 21:50:14 +00:00
|
|
|
script: tox -e py3
|
2020-12-20 16:54:33 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2020-10-09 12:34:03 +00:00
|
|
|
|
2020-10-02 13:48:39 +00:00
|
|
|
linters:
|
|
|
|
stage: quality-assurance
|
|
|
|
image: python:3-alpine
|
|
|
|
before_script:
|
2020-10-09 16:24:13 +00:00
|
|
|
- pip install tox
|
2020-10-02 13:48:39 +00:00
|
|
|
script: tox -e linters
|
|
|
|
allow_failure: true
|
2020-11-19 02:29:00 +00:00
|
|
|
|
2020-12-20 16:54:33 +00:00
|
|
|
|
2020-11-19 02:29:00 +00:00
|
|
|
build-deb:
|
|
|
|
image: debian:buster-slim
|
|
|
|
stage: build
|
|
|
|
before_script:
|
2020-12-20 16:54:33 +00:00
|
|
|
- >
|
|
|
|
apt-get update && apt-get -y --no-install-recommends install
|
|
|
|
build-essential debmake dh-python debhelper gettext python3-all
|
|
|
|
python3-setuptools
|
2020-11-19 02:29:00 +00:00
|
|
|
script:
|
|
|
|
- dpkg-buildpackage
|
|
|
|
- mkdir build && cp ../*.deb build/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/*.deb
|
|
|
|
expire_in: 1 week
|
2020-11-27 15:54:47 +00:00
|
|
|
only:
|
|
|
|
- master
|