-
Notifications
You must be signed in to change notification settings - Fork 5
Cleanup travis configuration for old artifcats #2
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Matthias Beyer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend checking out my travis config over at
https://github.com/epage/status/blob/master/.travis.yml
script: | ||
- rustup component add clippy-preview | ||
- cargo clippy -- -D warnings | ||
- rust: 1.27.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The advantage of pinning the version for rustfmt is your CI won't break when a new version of Rust is out that tweaks the format.
script: | ||
- cargo fmt --all -- --write-mode=diff | ||
- cargo build --all --all-features | ||
- cargo test --all --all-features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to drop clippy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but only temporarily until I figured out what to do with the codebase (maybe a big"ish" refactoring).
|
||
script: | ||
- cargo fmt --all -- --write-mode=diff | ||
- cargo build --all --all-features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want, you could just run cargo check
- cargo fmt --all -- --write-mode=diff | ||
|
||
script: | ||
- cargo fmt --all -- --write-mode=diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides not pinning rustfmt
, a disadvantage of running it in the regular job is that it will be duplicated per environment which I doubt you need.
No description provided.