Commit 19f460f7 authored by mbajur's avatar mbajur
Browse files

Use gitlab code quality checks

parent 4037f2eb
image: "registry.gitlab.com/mbajur/prismo-base-images:test"
stages:
- audit
- test
- code_quality
services:
- redis:latest
......@@ -12,8 +10,15 @@ services:
variables:
POSTGRES_DB: database_name
audit:
stage: test
image: ruby:2.5.1-alpine
script:
- gem install bundle-audit
- bundle audit check --update
sast:
stage: audit
stage: test
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
......@@ -30,12 +35,23 @@ sast:
artifacts:
paths: [gl-sast-report.json]
audit:
stage: audit
image: ruby:2.5.1-alpine
code_quality:
stage: test
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- gem install bundle-audit
- bundle audit check --update
- 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]
test:
stage: test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment