-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get CircleCI lint check check working, then pass tests #11
Conversation
168cdb3
to
142129d
Compare
There weren't any formatting errors to test against, but I temporarily pushed a commit with one to confirm that CI fails. |
After this, I'll actually start running the project tests |
Only libraries should ignore Cargo.lock according to: https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
- Fix the circle CI image version: they wanted the config version number, not the rust version. - Install libssl-dev in OS to support openssl-sys cargo package install - When referencing targets in the rust orb, must prefix with rust/ - Speed up CI by building debug instead of release (saves about 50s) - Save target/ in cache to speed up build time - Run rustfmt in CircleCI* * The rust/format job runs `cargo fmt` which only modifies the files in place, it doesn't actually fail or display the needed changes. So switch it to `cargo fmt -- --check` which passes --check into rustfmt, and causes CI to fail when formatting is broken (as desired).
142129d
to
c439f99
Compare
I didn't do anything manual with "Cargo.lock", just ran a |
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.
Looks good! Are there clippy settings somewhere that I'm missing? I've run clippy locally and not able to reproduce the linting warnings. Not sure why, but as long as it's being caught in ci then it's probably something wrong with my local setup that I'll sus out eventually
.circleci/config.yml
Outdated
jobs: | ||
lint-build-test: | ||
description: | | ||
Check linting with Clippy, then build the crate. |
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.
nitpick ... then build the crate and run tests.
Maybe the version of rust (v1.51.0)? The VM seems to install clippy normally: |
c978429
to
ced0b54
Compare
Fixes #3
Todo:
rustfmt