From 459e9b82f76d9aa5c93c288d2ce7b8be34c601b4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 1 May 2018 00:01:18 +0200 Subject: [PATCH] Add linting to the CI --- .gitlab-ci.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b711677..90596a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,25 @@ image: debian -test: +stages: + - linting + - test + +bandit: + stage: linting + script: + - apt-get -qqy update + - apt-get -qqy install --no-install-recommends python3-bandit + - bandit -r ./src --format txt --skip B404,B603 + +pyflakes: + stage: linting + script: + - apt-get -qqy update + - apt-get -qqy install --no-install-recommends pyflakes3 + - pyflakes3 ./src + +tests: + stage: test script: - apt-get -qqy update - apt-get -qqy install --no-install-recommends python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 libimage-exiftool-perl python3-coverage