.gitlab-ci.yml
changeset 364 89f5d730ed81
parent 363 8207f02c9d42
child 365 2ad78eeb9981
equal deleted inserted replaced
363:8207f02c9d42 364:89f5d730ed81
    13     script:
    13     script:
    14         - python3.5 bootstrap.py --buildout-version=2.12.0
    14         - python3.5 bootstrap.py --buildout-version=2.12.0
    15         - ./bin/buildout
    15         - ./bin/buildout
    16         - ./bin/test
    16         - ./bin/test
    17 
    17 
    18 quality:
    18 pylint:
    19     stage: quality
       
    20     image: docker:stable
       
    21     variables:
       
    22         DOCKER_DRIVER: overlay2
       
    23         DOCKER_HOST: tcp://docker:2375
       
    24     allow_failure: true
       
    25     services:
       
    26         - docker:stable-dind
       
    27     before_script:
       
    28         - grep "version =" setup.py
       
    29     script:
    19     script:
    30         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    20         - pip install pylint --quiet
    31         - echo "Using SP version $SP_VERSION"
    21         - pylint src/
    32         - docker run
       
    33             --privileged
       
    34             --env SOURCE_CODE="$PWD/src"
       
    35             --volume "$PWD":/code
       
    36             --volume /var/run/docker.sock:/var/run/docker.sock
       
    37             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
       
    38     artifacts:
       
    39         reports:
       
    40             codequality: gl-code-quality-report.json