Skip to content

Commit

Permalink
Support/gitlab develop (#168)
Browse files Browse the repository at this point in the history
* Added code_quality to CI

* Update .gitlab-ci.yml
  • Loading branch information
Roshan Syed authored and bobinson committed Oct 4, 2019
1 parent 1a41b5c commit d2c82cf
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,26 @@ test:
- ./tests/chain_test
- ./tests/cli_test
tags:
- builder
- builder

code_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/')
- 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
artifacts:
paths: [gl-code-quality-report.json]
expire_in: 1 week
except:
variables:
- $CODE_QUALITY_DISABLED

0 comments on commit d2c82cf

Please sign in to comment.