.gitlab-ci.yml
changeset 368 4f86173ae2cf
parent 366 6e482f99b30e
child 369 d4f04a4bfeeb
equal deleted inserted replaced
367:2c95d34496f5 368:4f86173ae2cf
    19     stage: quality
    19     stage: quality
    20     allow_failure: true
    20     allow_failure: true
    21     script:
    21     script:
    22         - pip install pylint --quiet
    22         - pip install pylint --quiet
    23         - pylint src/
    23         - pylint src/
       
    24 
       
    25 codequality:
       
    26     stage: quality
       
    27     allow_failure: true
       
    28     image: docker:latest
       
    29     variables:
       
    30         DOCKER_DRIVER: overlay2
       
    31     services:
       
    32         - docker:dind
       
    33     script:
       
    34         - docker pull codeclimate/codeclimate
       
    35         - docker run
       
    36             --env CODECLIMATE_CODE="$PWD"
       
    37             --volume "$PWD":/code
       
    38             --volume /var/run/docker.sock:/var/run/docker.sock
       
    39             --volume /tmp/cc:/tmp/cc codeclimate/codeclimate init
       
    40         - docker run
       
    41             --env CODECLIMATE_CODE="$PWD"
       
    42             --volume "$PWD":/code
       
    43             --volume /var/run/docker.sock:/var/run/docker.sock
       
    44             --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.json
       
    45     artifacts:
       
    46         paths: [codeclimate.json]