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

Add a Readme badge for "Build Passing" #33

Closed
czechboy0 opened this issue May 8, 2015 · 7 comments · Fixed by #50
Closed

Add a Readme badge for "Build Passing" #33

czechboy0 opened this issue May 8, 2015 · 7 comments · Fixed by #50

Comments

@czechboy0
Copy link
Member

Add a badge specifying the status of the latest master commit, something like and

@joelekstrom
Copy link
Contributor

Better yet - Let buildasaur build itself! 😄

@czechboy0
Copy link
Member Author

That's already happening, the little green checkmark and the comment in #32 was sent by my home Mac running Buildasaur on this repo continuously :)

@joelekstrom
Copy link
Contributor

That's nice. I guess you should use Travis CI for those buttons, but I don't think they support Swift yet. According to their blog, they're working on it right now though.

Maybe Buildasaur could run a small server that returns the correct of those two images for a specific branch?

@czechboy0
Copy link
Member Author

Actually, I'll probably just do it by injecting Javascript and pulling the latest master's commit status and interpreting it as a success/failure and showing the appropriate badge from shields.io.
I'm not against putting up servers, but I'd prefer if I didn't have to, so that people are not dependent on me maintaining something proprietary.

@joelekstrom
Copy link
Contributor

Travis CI doesn't require you to manage servers. You just enable your repo on Travis and it will build the project on their servers. Very convenient - and free for open source projects.

@czechboy0
Copy link
Member Author

Yeah I am aware, but unfortunately as far as I know, Travis doesn't yet support Swift 1.2 with Xcode 6.3 :( Also, I'd like to develop a way to do the badging for people using only Buildasaur as well, so it's more of an exercise and a proof of concept :)

@czechboy0
Copy link
Member Author

Unfortunately I wasn't able to do it. This worked in a blank HTML page, but not embedded in the Readme's markdown. So I caved and added one endpoint to my playground server, from where the right badge is now pulled based on the status of the latest commit on master.

Let me know if you can think of a way to show the badge without having to have a server (preferably client-side Javascript like the one I wrote, only we need one that actually works in GitHub's markdown pages).

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

Successfully merging a pull request may close this issue.

2 participants