Skip to content
Snippets Groups Projects
Commit 15f81bb0 authored by Nico's avatar Nico
Browse files

Restructure GitLab CI script

parent dfe367c6
No related branches found
No related tags found
1 merge request!2Add unit tests with pytest and report on coverage
Pipeline #3513 passed
test:pycodestyle:
image: debian:stretch
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
- tools/tests/test-pycodestyle.sh
image: debian:stretch
test:pylint:
image: debian:stretch
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
- tools/tests/test-pylint.sh
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
test:pytest:
image: debian:stretch
stages:
- test
pycodestyle:
stage: test
script: tools/tests/test-pycodestyle.sh
pylint:
stage: test
script: tools/tests/test-pylint.sh
pytest:
stage: test
coverage: '/TOTAL.*\s+(\d+%)$/'
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
- tools/tests/test-pytest.sh
script: tools/tests/test-pytest.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment