Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-05-28 02:57:33 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-05-28 04:11:34 +0300
commitfcc4821ce03aa2f1c44c9a4b705f691e648de0d4 (patch)
treeeab631a5ff0dd9332ff2e03afe5f93d4e68d8225 /.gitlab-ci.yml
parent08d8a8c4b27ec66485dbc4cbcb0d9088ba52720b (diff)
Use custom code_quality job inspired by the runner
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml19
1 files changed, 11 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bb87d51f..2b2bbf0f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -99,20 +99,23 @@ cover:
paths:
- coverage.html
-lint:
- extends: .go-mod-cache
+code_quality:
stage: test
needs: ['download deps']
- image: registry.gitlab.com/gitlab-org/gitlab-build-images:golangci-lint-alpine
+ extends: .go-mod-cache
+ image: golangci/golangci-lint:v1.27.0
+ variables:
+ REPORT_FILE: gl-code-quality-report.json
+ LINT_FLAGS: "--issues-exit-code 0 --color never --deadline 15m"
+ OUT_FORMAT: code-climate
script:
- # Write the code coverage report to gl-code-quality-report.json
- # and print linting issues to stdout in the format: path/to/file:line description
- - golangci-lint run --out-format code-climate | tee gl-code-quality-report.json | jq -r '.[] | "\(.location.path):\(.location.lines.begin) \(.description)"'
+ - make lint | tee ${REPORT_FILE}
+ timeout: 15 minutes
artifacts:
reports:
- codequality: gl-code-quality-report.json
+ codequality: ${REPORT_FILE}
paths:
- - gl-code-quality-report.json
+ - ${REPORT_FILE}
test:1.12:
extends: .tests