Skip to content

Commit

Permalink
Auto merge of #12025 - jetlime:master, r=flip1995
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jan 4, 2024
2 parents 691d4e2 + 89e4b71 commit 0bf0b88
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 16 additions & 0 deletions book/src/continuous_integration/gitlab.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 0bf0b88

Please sign in to comment.