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

fixing code-quality ci

parent 903e4cd1
Branches
Tags
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: ...@@ -3,7 +3,7 @@ code-quality-master:
stage: test stage: test
rules: 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
- if: $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: script:
# writes golangci-lint output to gl-code-quality-report.json # 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 - 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: ...@@ -19,7 +19,7 @@ code-quality:
stage: test stage: test
allow_failure: true allow_failure: true
rules: 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: script:
# writes golangci-lint output to gl-code-quality-report.json # 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 - 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