From 15f81bb0c9d1521ac4c43412a9e08441698cbca2 Mon Sep 17 00:00:00 2001 From: Nico Alt <nicoalt@posteo.org> Date: Mon, 10 Jun 2019 13:47:36 +0200 Subject: [PATCH] Restructure GitLab CI script --- .gitlab-ci.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1457617..647a4b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,21 +1,21 @@ -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 -- GitLab