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

Status badge for each OS of a build #4623

Closed
thejustinwalsh opened this issue Aug 6, 2015 · 5 comments
Closed

Status badge for each OS of a build #4623

thejustinwalsh opened this issue Aug 6, 2015 · 5 comments
Labels
locked This thread is locked, and won't automatically be closed

Comments

@thejustinwalsh
Copy link

Is it possible to get a passing/failing badge per operating system using travis, or shields.io?

I understand the concept of a build being a complete unit, and if your library or application is expected to support multiple operating systems, a failing build on an OS would indicate your product is broken. Makes perfect since most of the time.

However, I do find value in knowing what particular os is broken at a glance, so either I or the platform maintainer can identify what OS is causing problems in particular. This becomes especially important when working with C++11/14/17 as MSVC 2015 vs clang vs gcc all have different levels of support for the new features of the standard.

@roidrage
Copy link
Contributor

roidrage commented Aug 6, 2015

Thank you for bringing this up.

This isn't possible right now, and it's not a feature we have immediate plans for. We prefer to view a build as a whole, with the status badge being an indicator, and the build's matrix results being the single source of truth.

@weitjong
Copy link

We have worked around the problem by showing the status badges of our branches. The branches are mirror image of the master branch, except the .travis.yml which differs for each branch to tell Travis-CI to run different build tests for each target platforms. We could also group a few related target platforms into one branch. We have scripted our build system to do all this branching work automatically on each commit, so there is no branch maintenance overhead.

@kknox
Copy link

kknox commented Aug 18, 2015

I would also like to see independent 'build badges' for each independent 'build job'. Naively, I think both behaviors could be supported:
https://travis-ci.org/XXX/YYY.svg?branch=master could be a URL format that success/fail is the logical AND of all sub-jobs.

https://travis-ci.org/XXX/YYY.svg?branch=master&job=1 could be a URL format that reports success/fail for a particular job

@mosra
Copy link

mosra commented Sep 14, 2015

I would also be very happy to see this, I don't want to introduce otherwise meaningless branches just to differentiate OSes in Travis.

Another possible solution: allowing to specify different file than ".travis.yml" at repository root, then the user could have one "travis-linux.yml" and another "travis-osx.yml", having different badge for each and possibly even far more simplified build scripts that don't have to handle platform differences in single file.

@BanzaiMan
Copy link
Contributor

Thanks for the input. For the time being, we have no plans to implement this. Thanks for your interest.

@travis-ci travis-ci locked and limited conversation to collaborators Sep 14, 2015
@DrTorte DrTorte added the locked This thread is locked, and won't automatically be closed label Apr 2, 2018
@DrTorte DrTorte closed this as completed Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked This thread is locked, and won't automatically be closed
Projects
None yet
Development

No branches or pull requests

7 participants