BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a0ef01c8
Unverified
Commit
a0ef01c8
authored
Feb 21, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize and improve the inline documentation for the codequality job
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
09220278
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
.gitlab-ci.yml
.gitlab-ci.yml
+3
-1
codequality
scripts/codequality
+1
-0
No files found.
.gitlab-ci.yml
View file @
a0ef01c8
...
...
@@ -619,7 +619,9 @@ codequality:
cache
:
{}
dependencies
:
[]
script
:
-
./scripts/codequality analyze -f json > codeclimate.json ||
true
-
./scripts/codequality analyze -f json > raw_codeclimate.json ||
true
# The following line keeps only the fields used in the MR widget, reducing the JSON artifact size
-
cat raw_codeclimate.json | docker run -i stedolan/jq -c 'map({check_name,description,fingerprint,location})' > codeclimate.json
artifacts
:
paths
:
[
codeclimate.json
]
expire_in
:
1 week
...
...
scripts/codequality
View file @
a0ef01c8
...
...
@@ -8,6 +8,7 @@ code_path=$(pwd)
# it will break codequality json file
[
"
$CI
"
!=
""
]
||
docker_tty
=
"--tty"
# The codebase and instructions for the following image can be found at https://gitlab.com/gitlab-org/codeclimate-rubocop/wikis/home
docker pull dev.gitlab.org:5005/gitlab/gitlab-build-images:gitlab-codeclimate-rubocop-0-52-1
>
/dev/null
docker tag dev.gitlab.org:5005/gitlab/gitlab-build-images:gitlab-codeclimate-rubocop-0-52-1 codeclimate/codeclimate-rubocop:gitlab-codeclimate-rubocop-0-52-1
>
/dev/null
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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