diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bf6468388..720870d0c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -348,6 +348,10 @@ clippy: artifacts: false script: - ./ci/run-clippy.sh + artifacts: + reports: + codequality: gl-code-quality-report.json + expire_in: 1 week deny: extends: .img-stable diff --git a/ci/images_template.yml b/ci/images_template.yml index b495a92f7..3114ad40c 100644 --- a/ci/images_template.yml +++ b/ci/images_template.yml @@ -1,4 +1,4 @@ variables: - GST_RS_IMG_TAG: "2024-03-21.0" + GST_RS_IMG_TAG: "2024-03-27.0" GST_RS_STABLE: "1.77.0" GST_RS_MSRV: "1.70.0" diff --git a/ci/install-rust.sh b/ci/install-rust.sh index f60f48a43..c2dcb8aa4 100755 --- a/ci/install-rust.sh +++ b/ci/install-rust.sh @@ -29,6 +29,7 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then cargo install --locked --force cargo-deny cargo install --locked --force cargo-outdated cargo install --locked --force typos-cli + cargo install --locked --force gitlab_clippy # Coverage tools rustup component add llvm-tools-preview diff --git a/ci/run-clippy.sh b/ci/run-clippy.sh index 341d84d87..cd25003af 100755 --- a/ci/run-clippy.sh +++ b/ci/run-clippy.sh @@ -39,3 +39,5 @@ EXAMPLES_FEATURES="--features=rtsp-server,rtsp-server-record,pango-cairo,overlay # And also run over all the examples/tutorials cargo clippy --locked --color=always --manifest-path examples/Cargo.toml --all-targets "$EXAMPLES_FEATURES" -- $CLIPPY_LINTS cargo clippy --locked --color=always --manifest-path tutorials/Cargo.toml --all-targets --all-features -- $CLIPPY_LINTS + +cargo clippy --locked --message-format=json | gitlab-clippy > gl-code-quality-report.json