Skip to content
Snippets Groups Projects
Commit c6aad867 authored by Malte Bauch's avatar Malte Bauch
Browse files

fixing code-quality ci

parent 903e4cd1
No related branches found
No related tags found
3 merge requests!90Develop,!54Resolve "Restructure Project Directory Structure",!53V.0.1.0 Codename Threadbare
Pipeline #52779 passed
......@@ -3,7 +3,7 @@ code-quality-master:
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
- if: $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
# writes golangci-lint output to gl-code-quality-report.json
- golangci-lint run --config build/ci/.golangci-config/.golangci-master.yml --out-format code-climate | tee gl-code-quality-report.json
......@@ -19,7 +19,7 @@ code-quality:
stage: test
allow_failure: true
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH'
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
script:
# writes golangci-lint output to gl-code-quality-report.json
- golangci-lint run --config build/ci/.golangci-config/.golangci.yml --out-format code-climate | tee gl-code-quality-report.json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment