--- a/.gitlab-ci.yml Fri Jun 28 11:49:47 2019 +0200
+++ b/.gitlab-ci.yml Fri Jun 28 12:01:28 2019 +0200
@@ -38,30 +38,8 @@
- docker run -v /tmp/cc:/tmp/cc -v $VOLUME_PATH:/code -v /var/run/docker.sock:/var/run/docker.sock codeclimate/codeclimate validate-config
- ls -lash $PWD
- echo $PWD
- - 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
+ - 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
- ls -lash $PWD
artifacts:
reports:
codequality: codeclimate.json
-
-#quality:
-# stage: test
-# image: docker:stable
-# variables:
-# DOCKER_DRIVER: overlay2
-# allow_failure: true
-# services:
-# - docker:stable-dind
-# script:
-# - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-# - echo "$PWD"
-# - echo "$SP_VERSION"
-# - docker run
-# --env SOURCE_CODE="$PWD"
-# --volume "$PWD":/code
-# --volume /var/run/docker.sock:/var/run/docker.sock
-# "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
-# - ls
-# artifacts:
-# reports:
-# codequality: gl-code-quality-report.json