.gitlab-ci.yml
changeset 383 7f5d40182b58
parent 381 783188a98bcb
child 384 a4884c96f5af
equal deleted inserted replaced
382:18cd519c3d97 383:7f5d40182b58
    22     allow_failure: true
    22     allow_failure: true
    23     script:
    23     script:
    24         - pip install pylint --quiet
    24         - pip install pylint --quiet
    25         - pylint src/pyams_utils/
    25         - pylint src/pyams_utils/
    26 
    26 
       
    27 quality:
       
    28     stage: test
       
    29     image: docker:latest
       
    30     variables:
       
    31         DOCKER_DRIVER: overlay
       
    32     allow_failure: true
       
    33     services:
       
    34         - docker:dind
       
    35     script:
       
    36         - docker pull codeclimate/codeclimate
       
    37         - VOLUME_PATH=/tmp/builds"$(echo $PWD | sed 's|^/[^/]*||')"
       
    38         - docker run -v /tmp/cc:/tmp/cc -v $VOLUME_PATH:/code -v /var/run/docker.sock:/var/run/docker.sock codeclimate/codeclimate validate-config
       
    39         - ls -lash $PWD
       
    40         - echo $PWD
       
    41         - docker run --env CODECLIMATE_CODE="$VOLUME_PATH" -v /tmp/cc:/tmp/cc -v $VOLUME_PATH:/code -v /var/run/docker.sock:/var/run/docker.sock codeclimate/codeclimate analyze
       
    42         - ls -lash $PWD
       
    43     artifacts:
       
    44         reports:
       
    45             codequality: codeclimate.json
       
    46 
    27 #quality:
    47 #quality:
    28 #    stage: test
    48 #    stage: test
    29 #    image: docker:stable
    49 #    image: docker:stable
    30 #    variables:
    50 #    variables:
    31 #        DOCKER_DRIVER: overlay2
    51 #        DOCKER_DRIVER: overlay2