Why is my travis-ci build status always reflected as unknown?

Viewed 8416

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?

7 Answers

.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

Build Status

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".

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

See this announcement

This registered unknown

https://travis-ci.org/jlboat/FastaUtils.png?branch=master

This registered passing

https://travis-ci.com/jlboat/FastaUtils.png?branch=master

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

Follow a simple rule: use link of your travis repository dashboard.
In my case it's https://travis-ci.com/<username>/<repository>

Related