-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix a couple of clippy findings and run subcrate tests on travis #1468
Conversation
Thanks for your contribution! I'd assume that you've found the clippy warnings by running Also looking at this it might make sense to handle the testing of the font subcrate differently. Currently none of the tests inside of font are run when something inside of font is changed and clippy doesn't run on the code change either. Would be interesting to see if Github/Travis-CI support subdirectories more properly for CI purposes. |
Right, I was playing around with some additional warnings, the main.rs one is a clippy |
Oh it seems like there's a false positive currently present in the |
Also it seems like clippy does properly lint the subcrates (even though I wasn't able to reproduce locally). |
I think it might only lint the subcrates due to --all-targets --all-features https://github.com/jwilm/alacritty/blob/master/.travis.yml#L32 I'll remove the |
d89d11e
to
a814e0d
Compare
I added another commit which runs the tests of the two subcrates on travis as well. It seems to me that |
I don't think removing the |
cdf0ddc
to
0fa5e50
Compare
change println!(""); to println!(); fix needless_borrow clippy lint finding.
0fa5e50
to
089f081
Compare
Ok I think the copypasta tests fail because travis is headless and thus there is no x11 clipboard. :/
I'll undo running this test on travis again... |
089f081
to
f2431df
Compare
@matthiaskrgr I wonder if xvfb would also give a clipboard... https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI |
@jedahan ah, that's a great suggestion, thanks, I'll try that! :) |
f2431df
to
d56831b
Compare
01cc4b8
to
c36affd
Compare
I don't think using xvfb to run tests would be a great plan. I've used it for benchmarking before, so I have a travis config which would make this work, however it seems quite unclean to me. Keeping in mind that the |
testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail)
c36affd
to
b53f728
Compare
Ok I re-removed |
No description provided.