Open NullVoxPopuli opened 6 years ago
There is a working example in README.md. The big difference compared to your code is that you have an extraneous +
in your URL for some reason.
However, removing the +
alone won't help:
The env=
parameter seems to work only on non-built-in environment variables (the ones you set yourself with env:
in your .travis.yml
). I think I have found that os=
seems to be (partly?) supported — I don't know if it's on purpose or just serendipitously — so this means that you can write
https://badges.herokuapp.com/travis/NullVoxPopuli/CryptoExchangeClient?branch=master&os=osx&label=os=osx
to get a badge that at least is doing something different from what you saw:
However, this definitely does not work for other Travis config options, such as php=
:
Trying to make per-OS badges:
https://badges.herokuapp.com/travis/NullVoxPopuli/CryptoExchangeClient?branch=master&env=+TRAVIS_OS_NAME=osx&label=macOS
https://badges.herokuapp.com/travis/NullVoxPopuli/CryptoExchangeClient?branch=master&env=+TRAVIS_OS_NAME=linux&label=linux
my travis build: https://travis-ci.org/NullVoxPopuli/CryptoExchangeClient/builds/368190580
right now both badges show as unknown