Include GitLab in the CI section of the clippy doc book
This commit is contained in:
parent
677f8d8a3c
commit
89e4b7162c
@ -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)
|
||||
|
16
book/src/continuous_integration/gitlab.md
Normal file
16
book/src/continuous_integration/gitlab.md
Normal file
@ -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
|
||||
```
|
Loading…
Reference in New Issue
Block a user