Skip to content
Snippets Groups Projects
Commit 012688a4 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'patch-codeclimate-2' into 'master'

Update .gitlab-ci.yml

See merge request cocsn/gosdn!45
parents 420a4a6d 7ce3a526
No related branches found
No related tags found
1 merge request!45Update .gitlab-ci.yml
Pipeline #52404 failed
......@@ -17,11 +17,11 @@ code-quality-master:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: manual
script:
# writes golangci-lint output to codeclimate.json
- golangci-lint run --config .ci/.golangci-master.yml | tee codeclimate.json
# writes golangci-lint output to gl-code-quality-report.json
- golangci-lint run --config .ci/.golangci-master.yml | tee gl-code-quality-report.json
artifacts:
reports:
codequality: codeclimate.json
paths: [gl-code-quality-report.json]
code-quality:
......@@ -31,11 +31,11 @@ code-quality:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
script:
# writes golangci-lint output to codeclimate.json
- golangci-lint run --config .ci/.golangci.yml | tee codeclimate.json
# writes golangci-lint output to gl-code-quality-report.json
- golangci-lint run --config .ci/.golangci.yml | tee gl-code-quality-report.json
artifacts:
reports:
codequality: codeclimate.json
paths: [gl-code-quality-report.json]
Documentation:
before_script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment