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

Can't make Travis-CI build status badge to indicate specified branch? #1479

Closed
librae8226 opened this issue Feb 1, 2018 · 6 comments
Closed
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas

Comments

@librae8226
Copy link

expected:
https://travis-ci.org/alibaba/AliOS-Things.svg?branch=master

however, shields does not work like above:
https://img.shields.io/travis/alibaba/AliOS-Things.svg?branch=master

It seems the parameter branch=master doesn't make any difference on img.shields.io.

Apologize, the master is now build-passing, as well as all other branches, so we may not see the actual result, but I guess the question is clear.

@RedSparr0w
Copy link
Member

I believe the correct format for specifying a branch is:
https://img.shields.io/travis/USER/REPO/BRANCH.svg

So in your case the url would be:
https://img.shields.io/travis/alibaba/AliOS-Things/master.svg

Hope that helps 😄

@librae8226
Copy link
Author

quite helpful, thanks a lot @RedSparr0w

@paulmelnikow paulmelnikow added the question Support questions, usage questions, unconfirmed bugs, discussions, ideas label Feb 2, 2018
@eine
Copy link

eine commented Jun 12, 2018

@RedSparr0w the format you suggested is only supported for projects at travis-ci.org, not at travis-ci.com, isn't it?

@bertrandg
Copy link

@1138-4eb Check this merged PR, should works now: #1711

Use:
/travis/com/USER/REPO.(svg|png|gif|jpg|json)
/travis-ci/com/USER/REPO.(svg|png|gif|jpg|json)

@paulmelnikow
Copy link
Member

What's missing. Could you clarify?

screen shot 2018-12-05 at 11 58 46 pm

@JulienDemarque
Copy link

@paulmelnikow My bad, I didn't realise there was a Travis.org and a Travis.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas
Projects
None yet
Development

No branches or pull requests

6 participants