Skip to content

Add clippy to Travis and remove unnecessary code#66

Closed
romac wants to merge 10 commits into
masterfrom
travis-clippy
Closed

Add clippy to Travis and remove unnecessary code#66
romac wants to merge 10 commits into
masterfrom
travis-clippy

Conversation

@romac

@romac romac commented May 16, 2018

Copy link
Copy Markdown
Member

On hold. See #66 (comment).

Comment thread .travis.yml Outdated
before_script:
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
script:
- cargo clippy --all -- -D clippy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- cargo clippy --all --tests --all-features -- -D clippy

@psivesely

Copy link
Copy Markdown
Contributor

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)).

@romac

romac commented May 23, 2018

Copy link
Copy Markdown
Member Author

@nvesely Agreed.

@psivesely

Copy link
Copy Markdown
Contributor

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 rustup component add rustfmt-preview will effectively pin a rustfmt version (see SpinResearch/merkle.rs#36 (comment)).

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:

@afck

afck commented Aug 13, 2018

Copy link
Copy Markdown

Clippy can now also be installed via rustup (instead of cargo install), so you don't have to manually match Clippy versions to the corresponding Rust nightlies anymore. And it will even be part of one of the upcoming stable versions! 🎉
https://internals.rust-lang.org/t/clippy-is-available-as-a-rustup-component/7967

@psivesely

Copy link
Copy Markdown
Contributor

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 😺

@romac romac closed this Nov 30, 2022
@romac romac deleted the travis-clippy branch November 30, 2022 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants