2020-09-14 13:04:54 +00:00
|
|
|
stages:
|
|
|
|
- quality-assurance
|
2020-09-14 13:16:09 +00:00
|
|
|
- build
|
2020-09-14 13:04:54 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
image: python:3.7
|
|
|
|
stage: quality-assurance
|
|
|
|
before_script:
|
|
|
|
- pip install tox
|
|
|
|
script:
|
|
|
|
- tox -e linters
|
|
|
|
|
|
|
|
# Be nice to new contributors, but please use `tox` before commit
|
|
|
|
allow_failure: true
|
2020-09-14 13:16:09 +00:00
|
|
|
|
|
|
|
build-deb:
|
|
|
|
image: debian:buster
|
|
|
|
stage: build
|
|
|
|
before_script:
|
2020-09-14 13:25:04 +00:00
|
|
|
- apt-get update && apt-get -y --no-install-recommends install build-essential debmake dh-python debhelper python3-all python3-flask python3-ldap python3-setuptools
|
2020-09-14 13:16:09 +00:00
|
|
|
script:
|
|
|
|
- dpkg-buildpackage
|
|
|
|
- mkdir build && cp ../*.deb build/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/*.deb
|