File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 9
9
- [ Clippy's Lints] ( lints.md )
10
10
- [ Continuous Integration] ( continuous_integration/README.md )
11
11
- [ GitHub Actions] ( continuous_integration/github_actions.md )
12
+ - [ GitLab CI] ( continuous_integration/gitlab.md )
12
13
- [ Travis CI] ( continuous_integration/travis.md )
13
14
- [ Development] ( development/README.md )
14
15
- [ Basics] ( development/basics.md )
Original file line number Diff line number Diff line change
1
+ # GitLab CI
2
+
3
+ You can add Clippy to GitLab CI by using the latest stable [ rust docker image] ( https://hub.docker.com/_/rust ) ,
4
+ as it is shown in the ` .gitlab-ci.yml ` CI configuration file below,
5
+
6
+ ``` yml
7
+ # Make sure CI fails on all warnings, including Clippy lints
8
+ variables :
9
+ RUSTFLAGS : " -Dwarnings"
10
+
11
+ clippy_check :
12
+ image : rust:latest
13
+ script :
14
+ - rustup component add clippy
15
+ - cargo clippy --all-targets --all-features
16
+ ` ` `
You can’t perform that action at this time.
0 commit comments