# Copyright (c) 2019 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md

image: debian:buster

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

stages:
  - test

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

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

pytest:
    stage: test
    coverage: '/TOTAL.*\s+(\d+%)$/'
    script: tools/tests/test-pytest.sh
    when: manual
