aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2020-06-26 23:31:15 +0200
committernico <nico@magicbroccoli.de>2020-06-26 23:31:15 +0200
commite503508b5b1b14dd61a1426b798837f873ba772e (patch)
treeda80ee84da174867622b7d417a7949111108fa0e /.gitlab-ci.yml
parent2f730bf186da8a52b0b13040bd83949ee1366cfe (diff)
split up flake jobs
* split flake8 jobs into two seperate jobs to better control the result + add allow_failure: true to the pep8 job to not discourage anybody from commiting code
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
1 files changed, 11 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 63ed231..5189dd4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,12 +7,18 @@ before_script:
- pip install flake8
stages:
- - check
+ - syntax
+ - pep8
-flake8:
- stage: check
+syntax:
+ stage: syntax
script:
- # breaking errors and syntax errors
+ # breaking errors ie syntax errors
- flake8 --select=E9,F63,F7,F82 --show-source
- # pep8 warnings
+
+pep8:
+ stage: pep8
+ script:
+ # pep8 warnings
- flake8 --max-complexity=10 --max-line-length=120 --show-source
+ allow_failure: true