Add clippy to Travis and remove unnecessary code#66
Conversation
| before_script: | ||
| - cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed" | ||
| script: | ||
| - cargo clippy --all -- -D clippy |
There was a problem hiding this comment.
- cargo clippy --all --tests --all-features -- -D clippy
|
Maybe wait on this until a unified Travis testing strategy is figured out for all the RustySecrets related repositories (see SpinResearch/merkle.rs#36 (comment)). |
|
@nvesely Agreed. |
|
I'm working on a solution I'm testing in github.com/nvesely/winternitz. The idea is that a Rust nightly version is pinned as well as a clippy version. As @afck pointed out Additionally, commands are added to the Makefile so that one neither needs to remember/ type the correct version of Rust nightly or all the options one must pass to clippy or rustfmt. Commands are added both to install what's necessary to format and lint and to run these tools with the set of options to match Travis/ our expectations. One shouldn't need to update the pinned versions more than every couple of months or so and it should be possible to store the values only in the Makefile (and have Travis read them from there). I think this solves a few problems:
|
See @nvesly's original PR for merkle.rs at SpinResearch/merkle.rs#33
|
Clippy can now also be installed via rustup (instead of |
|
That simplifies things a lot. Ideally our CI is simply not as complicated as some of the ideas we were discussing a month or two back 😺 |
On hold. See #66 (comment).