.gitlab-ci.yml 556 Bytes
Newer Older
1 2 3 4
# Copyright (c) 2019 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md

Nico Alt's avatar
Nico Alt committed
5
image: debian:stretch
Nico Alt's avatar
Nico Alt committed
6

Nico Alt's avatar
Nico Alt committed
7 8 9
before_script:
    - apt update && apt install --no-install-recommends -y gir1.2-gtk-3.0 python3-gi python3-pip python3-setuptools
    - pip3 install -r requirements-dev.txt
Nico Alt's avatar
Nico Alt committed
10

Nico Alt's avatar
Nico Alt committed
11 12 13 14 15 16 17 18 19 20 21 22 23
stages:
  - test

pycodestyle:
    stage: test
    script: tools/tests/test-pycodestyle.sh

pylint:
    stage: test
    script: tools/tests/test-pylint.sh

pytest:
    stage: test
Nico Alt's avatar
Nico Alt committed
24
    coverage: '/TOTAL.*\s+(\d+%)$/'
Nico Alt's avatar
Nico Alt committed
25
    script: tools/tests/test-pytest.sh