Reputation: 259
I setup travis-ci for a new rails project, but for some reason the build status is always shown as unknown in my README. I have googled a bit and not been able to find any solutions. Although I have had some similar symptoms as others. E.g., all of my builds show they are still building, but if you look at the individual builds they are passed or failed.
BTW, should this be reported as a travis-ci issue?
Upvotes: 20
Views: 8589
Reputation: 1940
Follow a simple rule: use link of your travis repository dashboard.
In my case it's https://travis-ci.com/<username>/<repository>
Upvotes: 0
Reputation: 2675
In my case, the issue resolved by opening the image url
on browser. You can get the image url
from the Status Image
popup by clicking build status badge on your project dashboard. The build status changed immediately after the image url
fully loaded on the browser. For example click me
Upvotes: 0
Reputation: 436
.com will not work here, as per latest. This works for me
## Travis-Build
[![Build Status](https://api.travis-ci.org/sananand007/genTspsolver.png?branch=master)](https://travis-ci.org/sananand007/genTspsolver)
Travis-Build
Upvotes: 3
Reputation: 1696
In my case, the links I used were based on travis-ci.org when as of May 2018, all links should use travis-ci.com
This registered unknown
https://travis-ci.org/jlboat/FastaUtils.png?branch=master
This registered passing
https://travis-ci.com/jlboat/FastaUtils.png?branch=master
Upvotes: 2
Reputation: 1334
My issue was just that I this was my first build on travis-ci.org after I made my app public instead of private. I just had to wait for the image to be updated to reflect the new build status, which took a couple minutes. It is a free service on the .org rather than the paid service on the travis-ci.com so we have to wait on the shared resources to create the build status image.
Upvotes: 0
Reputation: 652
I use the Travis badge in our project's README in Github and I had the same issue. It turned out I did not have the correct settings in Travis.
From your Travis dashboard, go to More options => Settings. For me, I needed to turn on "Build pushed branches." After that, I clicked More options => Trigger build, and triggered a build.
Once Travis ran (and passed), I went back to Github and hard refreshed the page. The Travis badge had updated to green, or "build: passing".
Upvotes: 2
Reputation: 64363
I ran in to the same issue. I was able to address the issue by adding the branch
parameter to the image url:
This url did not work
https://travis-ci.org/kandadaboggu/iprofiler.png
This url worked
https://travis-ci.org/kandadaboggu/iprofiler.png?branch=master
Upvotes: 21