Skip to content
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

Continuous Integration #5

Closed
5 tasks done
oxr463 opened this issue Jun 21, 2019 · 7 comments
Closed
5 tasks done

Continuous Integration #5

oxr463 opened this issue Jun 21, 2019 · 7 comments
Assignees
Milestone

Comments

@oxr463
Copy link
Contributor

oxr463 commented Jun 21, 2019

Tools

Also, per conversation with @jyn514,

run clippy before compiling, otherwise it won't output anything, it's an ongoing bug.

@jyn514
Copy link
Contributor

jyn514 commented Jun 21, 2019

Link to original clippy issue: rust-lang/rust-clippy#2604

oxr463 added a commit that referenced this issue Jun 22, 2019
oxr463 added a commit that referenced this issue Jun 22, 2019
@oxr463
Copy link
Contributor Author

oxr463 commented Jun 22, 2019

  • Update gcc dependency
[build-dependencies]
-gcc = { git = "https://github.com/vincenthage/gcc-rs", branch = "master" }
+gcc = { git = "https://github.com/alexcrichton/cc-rs", branch = "master" }
  • Switch to nightly channel
rust:
- nightly
  • Fix formatting, cargo fmt --all.

@jyn514
Copy link
Contributor

jyn514 commented Jun 22, 2019

Just so you know, cargo fmt --all && git diff --numstat | awk '{print $1 + $2}' | paste -sd+ | bc shows 800 modified lines, which is a bit much to review by hand. Maybe only check formatting for modified files in each commit?

@oxr463
Copy link
Contributor Author

oxr463 commented Jun 22, 2019

But won't running cargo fmt --all, automatically fix the formatting?

How would I only check the formatting for modified files?

@jyn514
Copy link
Contributor

jyn514 commented Jun 22, 2019

Hmm... maybe something like this? git status --porcelain | sed 's/^...//' | grep '\.rs$' | xargs cargo fmt -v --, see https://stackoverflow.com/questions/5237605/how-can-i-run-git-status-and-just-get-the-filenames#5238537

@jyn514
Copy link
Contributor

jyn514 commented Jun 22, 2019

Also the existing unit tests aren't passing, I'm taking a look at that now

@oxr463
Copy link
Contributor Author

oxr463 commented Mar 23, 2021

Closing per #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants