diff options
| author | bors <bors@rust-lang.org> | 2024-01-04 10:48:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-04 10:48:53 +0000 |
| commit | 0bf0b88035563973405676601fde107b84ca3d0c (patch) | |
| tree | da785efec1d555f0acb7fe7479174c61bb1156d5 | |
| parent | 691d4e275a31c5f29431d16d6a678b342109c17f (diff) | |
| parent | 89e4b7162c41f8e889369d1713557de38df1c7b9 (diff) | |
| download | rust-0bf0b88035563973405676601fde107b84ca3d0c.tar.gz rust-0bf0b88035563973405676601fde107b84ca3d0c.zip | |
Auto merge of #12025 - jetlime:master, r=flip1995
Include GitLab in the CI section of the clippy doc book Fixes #12012 changelog: Docs: [`Continuous Integration`] now includes how to use clippy in GitLab CI.
| -rw-r--r-- | book/src/SUMMARY.md | 1 | ||||
| -rw-r--r-- | book/src/continuous_integration/gitlab.md | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/book/src/SUMMARY.md b/book/src/SUMMARY.md index b02457307d7..a048fbbd8ac 100644 --- a/book/src/SUMMARY.md +++ b/book/src/SUMMARY.md @@ -9,6 +9,7 @@ - [Clippy's Lints](lints.md) - [Continuous Integration](continuous_integration/README.md) - [GitHub Actions](continuous_integration/github_actions.md) + - [GitLab CI](continuous_integration/gitlab.md) - [Travis CI](continuous_integration/travis.md) - [Development](development/README.md) - [Basics](development/basics.md) diff --git a/book/src/continuous_integration/gitlab.md b/book/src/continuous_integration/gitlab.md new file mode 100644 index 00000000000..bb3ef246c2f --- /dev/null +++ b/book/src/continuous_integration/gitlab.md @@ -0,0 +1,16 @@ +# GitLab CI + +You can add Clippy to GitLab CI by using the latest stable [rust docker image](https://hub.docker.com/_/rust), +as it is shown in the `.gitlab-ci.yml` CI configuration file below, + +```yml +# Make sure CI fails on all warnings, including Clippy lints +variables: + RUSTFLAGS: "-Dwarnings" + +clippy_check: + image: rust:latest + script: + - rustup component add clippy + - cargo clippy --all-targets --all-features +``` |
