diff options
| author | jvoisin | 2018-05-01 00:01:18 +0200 |
|---|---|---|
| committer | jvoisin | 2018-05-01 00:11:16 +0200 |
| commit | 459e9b82f76d9aa5c93c288d2ce7b8be34c601b4 (patch) | |
| tree | 7ae62c5cf676b5af22b526e5a1f237449d70b326 | |
| parent | c4271715e49bb90d9420a8394e250bc8bcabdbcb (diff) | |
Add linting to the CI
| -rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 20 insertions, 1 deletions
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 @@ | |||
| 1 | image: debian | 1 | image: debian |
| 2 | 2 | ||
| 3 | test: | 3 | stages: |
| 4 | - linting | ||
| 5 | - test | ||
| 6 | |||
| 7 | bandit: | ||
| 8 | stage: linting | ||
| 9 | script: | ||
| 10 | - apt-get -qqy update | ||
| 11 | - apt-get -qqy install --no-install-recommends python3-bandit | ||
| 12 | - bandit -r ./src --format txt --skip B404,B603 | ||
| 13 | |||
| 14 | pyflakes: | ||
| 15 | stage: linting | ||
| 16 | script: | ||
| 17 | - apt-get -qqy update | ||
| 18 | - apt-get -qqy install --no-install-recommends pyflakes3 | ||
| 19 | - pyflakes3 ./src | ||
| 20 | |||
| 21 | tests: | ||
| 22 | stage: test | ||
| 4 | script: | 23 | script: |
| 5 | - apt-get -qqy update | 24 | - apt-get -qqy update |
| 6 | - 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 | 25 | - 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 |
