diff options
| author | Philipp Krones <hello@philkrones.com> | 2018-11-26 14:31:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-26 14:31:48 +0100 |
| commit | dec389a5eea427c4faf20327baa7f34096a4e41f (patch) | |
| tree | ff6bba5a748649ef140e618cf0514c5d5606da2b | |
| parent | 1e2291c90ce753ab200c5d3902fc1c63aebada76 (diff) | |
| parent | 2a1c8b1db6d5cb79aa77333387c9be50c0b70aa7 (diff) | |
| download | rust-dec389a5eea427c4faf20327baa7f34096a4e41f.tar.gz rust-dec389a5eea427c4faf20327baa7f34096a4e41f.zip | |
Merge pull request #3412 from matthiaskrgr/readme_2
readme: tell how to install clippy on travis from git if it is not shipped with a nightly.
| -rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md index 9d142a2deee..0cb1481c9cf 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,18 @@ script: # etc. ``` +It might happen that clippy is not available for a certain nightly release. +In this case you can try to conditionally install clippy from the git repo. + +```yaml +language: rust +rust: + - nightly +before_script: + - rustup component add clippy-preview --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy + # etc +``` + ## Configuration Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a basic `variable = value` mapping eg. |
