debian-mirror-gitlab/lib/gitlab/ci/templates/Code-Quality.gitlab-ci.yml

18 lines
470 B
YAML
Raw Normal View History

2019-07-07 11:18:12 +05:30
code_quality:
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
variables:
DOCKER_DRIVER: overlay2
script:
- 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:11-8-stable" /code
artifacts:
reports:
codequality: gl-code-quality-report.json
expire_in: 1 week