Replace code quality with pylint
authorThierry Florac <tflorac@ulthar.net>
Wed, 12 Jun 2019 19:53:29 +0200
changeset 364 89f5d730ed81
parent 363 8207f02c9d42
child 365 2ad78eeb9981
Replace code quality with pylint
.gitlab-ci.yml
--- a/.gitlab-ci.yml	Wed Jun 12 18:35:52 2019 +0200
+++ b/.gitlab-ci.yml	Wed Jun 12 19:53:29 2019 +0200
@@ -15,26 +15,7 @@
         - ./bin/buildout
         - ./bin/test
 
-quality:
-    stage: quality
-    image: docker:stable
-    variables:
-        DOCKER_DRIVER: overlay2
-        DOCKER_HOST: tcp://docker:2375
-    allow_failure: true
-    services:
-        - docker:stable-dind
-    before_script:
-        - grep "version =" setup.py
+pylint:
     script:
-        - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-        - echo "Using SP version $SP_VERSION"
-        - docker run
-            --privileged
-            --env SOURCE_CODE="$PWD/src"
-            --volume "$PWD":/code
-            --volume /var/run/docker.sock:/var/run/docker.sock
-            "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
-    artifacts:
-        reports:
-            codequality: gl-code-quality-report.json
+        - pip install pylint --quiet
+        - pylint src/