.gitlab-ci.yml
changeset 384 a4884c96f5af
parent 383 7f5d40182b58
child 385 d8f00ddb9e28
equal deleted inserted replaced
383:7f5d40182b58 384:a4884c96f5af
    36         - docker pull codeclimate/codeclimate
    36         - docker pull codeclimate/codeclimate
    37         - VOLUME_PATH=/tmp/builds"$(echo $PWD | sed 's|^/[^/]*||')"
    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
    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
    39         - ls -lash $PWD
    40         - echo $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
    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 -f json >codeclimate.json
    42         - ls -lash $PWD
    42         - ls -lash $PWD
    43     artifacts:
    43     artifacts:
    44         reports:
    44         reports:
    45             codequality: codeclimate.json
    45             codequality: codeclimate.json
    46 
       
    47 #quality:
       
    48 #    stage: test
       
    49 #    image: docker:stable
       
    50 #    variables:
       
    51 #        DOCKER_DRIVER: overlay2
       
    52 #    allow_failure: true
       
    53 #    services:
       
    54 #        - docker:stable-dind
       
    55 #    script:
       
    56 #        - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
       
    57 #        - echo "$PWD"
       
    58 #        - echo "$SP_VERSION"
       
    59 #        - docker run
       
    60 #            --env SOURCE_CODE="$PWD"
       
    61 #            --volume "$PWD":/code
       
    62 #            --volume /var/run/docker.sock:/var/run/docker.sock
       
    63 #            "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
       
    64 #        - ls
       
    65 #    artifacts:
       
    66 #        reports:
       
    67 #            codequality: gl-code-quality-report.json