summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2019-10-27 14:51:27 +0100
committermathieui <mathieui@mathieui.net>2019-10-27 14:51:27 +0100
commitabe1941abfd5d0be8517f1a1a8de8ccd2ad0766b (patch)
tree7dbb35293a7dfbc7464b76e3226392516aa2feb4
parent80a7babc0c6e850f2de7572ebc94729ee24fcde3 (diff)
downloadpoezio-abe1941abfd5d0be8517f1a1a8de8ccd2ad0766b.tar.gz
poezio-abe1941abfd5d0be8517f1a1a8de8ccd2ad0766b.tar.bz2
poezio-abe1941abfd5d0be8517f1a1a8de8ccd2ad0766b.tar.xz
poezio-abe1941abfd5d0be8517f1a1a8de8ccd2ad0766b.zip
CI: add a linting stage, and put mypy in there
Obviously failing at the moment.
-rw-r--r--.gitlab-ci.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 42b02c1b..722e881f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,5 @@
stages:
+ - lint
- test
- build
@@ -31,7 +32,7 @@ build-ubuntu:
- master
security-check:
- stage: test
+ stage: lint
image: python:3
script:
- pip3 install safety
@@ -78,7 +79,7 @@ pytest-latest:
- py.test -v test/
pylint-latest:
- stage: test
+ stage: lint
image: python:3
script:
- apt-get update && apt-get install -y libidn11-dev
@@ -91,7 +92,7 @@ pylint-latest:
- pylint -E poezio
pylint-plugins:
- stage: test
+ stage: lint
image: python:3
allow_failure: true
script:
@@ -101,3 +102,11 @@ pylint-plugins:
- pip3 install -r requirements-plugins.txt
- python3 setup.py install
- pylint -E plugins
+
+mypyc:
+ stage: lint
+ image: python:3
+ allow_failure: true
+ script:
+ - pip3 install mypy
+ - mypyc --ignore-missing-imports ./poezio