Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Engel Simulator 2020
Engel Simulator 2020
Commits
3a6ddc1b
Commit
3a6ddc1b
authored
Feb 24, 2021
by
Rahix
🦀
Browse files
ci: Add clippy-based code quality report
parent
d0f3643b
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3a6ddc1b
...
...
@@ -3,6 +3,7 @@ image: "engel-simulator-builder:latest"
stages
:
-
check
-
build
-
qa
-
deploy
cache
:
&global_cache
...
...
@@ -54,6 +55,26 @@ build-release:
-
master
-
tags
clippy
:
stage
:
qa
cache
:
# inherit all global cache settings
<<
:
*global_cache
key
:
merge-requests
before_script
:
-
apt-get install -y jq
-
rustup component add clippy
script
:
-
RUSTFLAGS=-Dwarnings wasm-pack build --dev
-
|
cargo clippy --message-format json | jq -s 'map(. | select(.reason == "compiler-message" and .message.code != null) | {description: .message.message, location: {path: .message.spans[0].file_name, lines: {begin: .message.spans[0].line_start}}, fingerprint: [.message.code, .message.spans, .message.message] | @base64, severity: "minor"})' >code-quality.json
artifacts
:
reports
:
codequality
:
code-quality.json
only
:
-
master
-
merge_requests
deploy
:
stage
:
deploy
tags
:
...
...
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