1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
# This is used by the python containers, which run Debian
before_script:
- apt update
- apt install -y gobject-introspection tox dbus libdbus-1-dev libgirepository1.0-dev python3-cairo-dev pylint3 flake8 python3-dbus
- python -V
cache:
paths:
- .tox/
stages:
- linters
- tests
test-archlinux-py3.7:
stage: tests
image: base/archlinux
before_script:
- pacman -Sy
- pacman -S --noconfirm python-tox gobject-introspection base-devel cairo
- python -V
script:
- TOXENV=py37 tox
test-py3.4:
stage: tests
image: python:3.4
script:
- TOXENV=py34 tox
test-py3.5:
stage: tests
image: python:3.5
script:
- TOXENV=py35 tox
test-py3.6:
stage: tests
image: python:3.6
script:
- TOXENV=py36 tox
test-no-gi:
stage: tests
image: python:3.7
before_script:
- apt update
- apt install -y tox dbus libdbus-1-dev libgirepository1.0-dev python3-cairo-dev pylint3 flake8 python3-dbus
- python -V
script:
- TOXENV=py37 tox
pylint:
stage: linters
image: python:3.7
script:
- pylint3 -d C0111,C0103 networkd_dispatcher.py
flake8:
stage: linters
image: python:3.7
script:
- flake8 networkd_dispatcher.py
|