Why is my coveralls.io badge not updating even when the builds are happening?

cfogelberg picture cfogelberg · May 21, 2014 · Viewed 7.1k times · Source

I am trying to use coveralls.io to show a coverage badge for my tests, but the coverage badge is stuck on "unknown".

The relevant repo is here: https://github.com/cfogelberg/grunt-set-app-mode

When I look at coveralls.io for that repo I see the same "coverage: unknown" status: coveralls.io/r/cfogelberg/grunt-set-app-mode

However, the individual builds are being correctly sent to coveralls.io: https://coveralls.io/builds/788669

What am I missing?

Answer

iamdefinitelyahuman picture iamdefinitelyahuman · Jun 30, 2019

If clearing your local cache isn't fixing the image, the problem is likely that it was cached by Github as a part of their image URL anonymization process.

You can force Github to clear their cache of the image with the following curl command. Change the example URL to the one from the your repo, it will always be https://camo.githubusercontent.com/ followed by a long hash.

curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....

Source: GitHub Help: About anonymized image URLs