mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
CI: Add a clippy job
Uses stable clippy for the time being Otherwise we'll get warnings about lint names being deprecated without being able to fix it while still being able to compile on stable. This will solve itself once the new lint names move to stable and we can switch to them.
This commit is contained in:
parent
9d5347d7b5
commit
4ce27c130b
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
stages:
|
stages:
|
||||||
- "lint"
|
- "lint"
|
||||||
- "test"
|
- "test"
|
||||||
|
- "extras"
|
||||||
|
|
||||||
.tarball_setup: &setup
|
.tarball_setup: &setup
|
||||||
variables:
|
variables:
|
||||||
|
@ -74,3 +75,12 @@ rustfmt:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- cargo fmt --version
|
- cargo fmt --version
|
||||||
- cargo fmt -- --color=always --check
|
- cargo fmt -- --color=always --check
|
||||||
|
|
||||||
|
clippy:
|
||||||
|
image: "rust:slim"
|
||||||
|
stage: 'extras'
|
||||||
|
<<: *setup
|
||||||
|
script:
|
||||||
|
- rustup component add clippy-preview
|
||||||
|
- cargo clippy --version
|
||||||
|
- cargo clippy --color=always --all --all-features
|
||||||
|
|
Loading…
Reference in a new issue