Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a0ef01c8
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
Changes
2
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
scripts/codequality
scripts/codequality
+1
-0
No files found.
.gitlab-ci.yml
View file @
a0ef01c8
...
@@ -619,7 +619,9 @@ codequality:
...
@@ -619,7 +619,9 @@ codequality:
cache
:
{}
cache
:
{}
dependencies
:
[]
dependencies
:
[]
script
:
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
:
artifacts
:
paths
:
[
codeclimate.json
]
paths
:
[
codeclimate.json
]
expire_in
:
1 week
expire_in
:
1 week
...
...
scripts/codequality
View file @
a0ef01c8
...
@@ -8,6 +8,7 @@ code_path=$(pwd)
...
@@ -8,6 +8,7 @@ code_path=$(pwd)
# it will break codequality json file
# it will break codequality json file
[
"
$CI
"
!=
""
]
||
docker_tty
=
"--tty"
[
"
$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 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
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