.gitlab-ci.yml
changeset 386 15801a3108dc
parent 385 d8f00ddb9e28
child 404 3f249488b3ff
equal deleted inserted replaced
385:d8f00ddb9e28 386:15801a3108dc
    34         - docker:dind
    34         - docker:dind
    35     script:
    35     script:
    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
       
    40         - echo $PWD
    39         - 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 -f json >codeclimate.json
    40         - 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 >echo.txt
       
    43     artifacts:
    41     artifacts:
    44         paths:
       
    45             - echo.txt
       
    46         reports:
    42         reports:
    47             codequality: codeclimate.json
    43             codequality: codeclimate.json