squirrel-battle/.gitlab-ci.yml

48 lines
876 B
YAML

stages:
- test
- quality-assurance
- build
py37:
stage: test
image: python:3.7-alpine
before_script:
- pip install tox
script: tox -e py3
py38:
stage: test
image: python:3.8-alpine
before_script:
- pip install tox
script: tox -e py3
py39:
stage: test
image: python:3.9-alpine
before_script:
- pip install tox
script: tox -e py3
linters:
stage: quality-assurance
image: python:3-alpine
before_script:
- pip install tox
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 python3-all python3-setuptools
script:
- dpkg-buildpackage
- mkdir build && cp ../*.deb build/
artifacts:
paths:
- build/*.deb
expire_in: 1 week