squirrel-battle/.gitlab-ci.yml

84 lines
1.3 KiB
YAML
Raw Normal View History

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
py310:
stage: test
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
before_script:
- apk add --no-cache gettext
- 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:
- apk add --no-cache gettext
2020-10-02 13:48:39 +00:00
- pip install tox
script: tox -e py3
2020-10-02 13:48:39 +00:00
2020-10-09 12:34:03 +00:00
py37:
2020-10-09 12:34:03 +00:00
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
2020-10-09 12:34:03 +00:00
before_script:
- apk add --no-cache gettext
2020-10-09 12:34:03 +00:00
- pip install tox
script: tox -e py3
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-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 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
only:
- master