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-11-11 21:50:14 +00:00
|
|
|
py37:
|
|
|
|
stage: test
|
|
|
|
image: python:3.7-alpine
|
|
|
|
before_script:
|
|
|
|
- pip install tox
|
|
|
|
script: tox -e py3
|
|
|
|
|
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:
|
|
|
|
- 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
|
|
|
|
|
|
|
py39:
|
|
|
|
stage: test
|
|
|
|
image: python:3.9-alpine
|
|
|
|
before_script:
|
|
|
|
- pip install tox
|
2020-11-11 21:50:14 +00:00
|
|
|
script: tox -e py3
|
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
|
|
|
|
|
|
|
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 python3-all python3-setuptools
|
|
|
|
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
|