Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TeDomum
Prismo
Commits
19f460f7
Commit
19f460f7
authored
Jul 27, 2018
by
mbajur
Browse files
Use gitlab code quality checks
parent
4037f2eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
19f460f7
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
:
audi
t
stage
:
tes
t
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment