-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |