-
Notifications
You must be signed in to change notification settings - Fork 407
Use workspaces to separate crates #379
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
Use workspaces to separate crates #379
Conversation
Nice! Looks good, not sure why travis is failing on stable, but 1.22 looks like its because net-tokio doesn't support 1.22 (for various reasons). That's OK but we need to figure out how to make travis only run the main crate tests for 1.22. |
9037a22
to
88fef64
Compare
Codecov Report
@@ Coverage Diff @@
## master #379 +/- ##
=========================================
Coverage ? 87.49%
=========================================
Files ? 29
Lines ? 15791
Branches ? 0
=========================================
Hits ? 13817
Misses ? 1974
Partials ? 0
Continue to review full report at Codecov.
|
Hmm, looks like it needs a rebase, sadly. Are you still working on this @rrybarczyk ? |
Yeah @TheBlueMatt, rebasing rn. Still need to figure out how to make Travis to skip over the net-tokio tests for Rust v1.22 though. |
Probably just update the script in .travis.yml to skip it based on the rustup show grep pattern already there. |
So change L18 from |
Ohhh, I guess I don't know how workspaces works? Can you change the root test to cd to the main workspace before testing so that it doesnt test all the workspaces, or does that test all the workspaces? |
The command to just test the I think I am having issues because I am not quite comfortable with Travis and am unclear on exactly what it should be building/testing for which version of Rust. Can you let me know if my understanding of the If my understanding of the above is correct, how do you feel about this update to the
If my understanding is in correct, let me know where I am going wrong/what I am missing and I will update accordingly. |
12b60c0
to
b371ec5
Compare
Your understanding is correct, L20-33 do the codecov integration so we get code coverage reports....its some magic I just copied from their sample. Your proposed version looks good, but you probably need to move the "Make sure we drop old test binaries" down to below the Build on Rust 1.22.0 line. |
03e49b0
to
0c6dadc
Compare
Oops, sorry, merging #395 conflicted this PR. If you're working on it now can do a quick rebase + merge, otherwise may be a moving target... |
@TheBlueMatt I am actively working on it rn. I had a syntax issue in the last .travis.yaml. I pushed a fix and it looks like everything is building ok rn, but it still has not finished all the way yet. Once this build (hopefully) passes, I can squash all my commits and have it ready to merge asap. |
Ok, looks like all the builds are passing now! I squashed my WIP comments into one and pulled from master so everything should be up to date. Going to do a force push on this branch rn and it should be ready to merge |
0c6dadc
to
06091ce
Compare
Use Rust's workspaces to separate the lightning and lightning-net-tokio crates. Tests from both workspaces will execute when
cargo test
is invoked at the top level directory.