-
Notifications
You must be signed in to change notification settings - Fork 645
Add Gitlab CI badge support. #539
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
Conversation
CCing @carols10cents Since you commented on the original issue (#537) |
It's not actually be necessary for the badge to really load-- The ember tests are just looking at the generated markup. So it should be fine to add to the
In general the Rust tests are a lot longer than I would write, personally, but so far they seem to be working out okay-- there's a lot of setup and stuff that makes longer tests make more sense than in other circumstances. So go ahead and add gitlab in the same test as the other badges! The code looks great so far! The only thing is it looks like you took out the deny warnings in src/bin/delete-crate.rs ? When you add the tests, could you take that change out please? Thank you so much!!!! ❤️ ❤️ ❤️ |
547f2bf
to
22df891
Compare
So there's one more change I need to fix, but it's blocking on Gitlab coming back up, but I'll take care of that tomorrow. |
So Gitlab's back so everything should be good now. One thing I should comment on is that the badge link URL points to the /pipelines page for the repo, not to the commit list for the set branch as Gitlab suggests in their Markdown badge examples. This keeps it's functionality consistent with the other badges, where they all link as directly as possible to the CI results page. |
I think we're all good with this one. I also submitted rust-lang/cargo#3632, which should round out the documentation at least in the codebase itself. |
Looks great!!!! Thank you!!! ❤️ |
Awesome, thanks @carols10cents. I'm not familiar with the deployment process for crates.io and if it eides the same trains as Rust. So you know when this might be deployed and usable? |
Document build badge for Gitlab CI This doesn't make sense to merge until rust-lang/crates.io#539 is merged, but I figured I'd get it all spooled up since that PR is already ready for merging.
@alexcrichton manages deployment, I'm not sure how often. |
Ah yes this should be deployed now! |
@alexcrichton When is deployment done? Is it as soon as a new commit is merged in by bors? This would be helpful to document somewhere I think. |
When I hit a button, and yes lots of things would be useful if they were documented! |
Well I'd be happy to help! Let me know if you think I could help here. |
There’s a spelling mistake in all of this: it’s GitLab, not Gitlab. (Just like GitHub is GitHub, not Github.) Yes, this definitely needs to be fixed. |
@chris-morgan I'll submit a new PR for this (as this has already been merged) otherwise if you want to file a new issue we can track that work there. |
@chris-morgan see rust-lang/cargo#3669 and #547. |
Resolves #537.
I tested this code by modifying
app/mirage/fixtures/search.js
with data from mygattii
crate, which has Gitlab CI configured. None of the existing projects in this file have gitlab CI, so should I add mygattii
crate information to this file? If so, is there an easy way to grab this info (maybe a REST call to the real crates.io)?I know there are badge tests in
src/tests/badge.rs
, but it's all one big complicated test. Should I try to integrate a gitlab badge into that existing test or create a new one? I'm not really certain what to do here that would be best so some guidance here would be helpful.