Bash script does not detect Appveyor

Description

Using the bash script from https://codecov.io/bash does (no longer?) detect Appveyor. This seems to be caused by the values of “APPVEYOR” and “CI” env variables containing “True” but are tested for “true”. I suggest to make the test case insensitive.

Repository

https://ci.appveyor.com/project/ceddlyburge/codecov-on-appveyor/builds/31175873

Steps to Reproduce

Use:
after_test:
- ps: |
bash -c ‘touch coverage.xml’
Invoke-WebRequest -Uri ‘https://codecov.io/bash’ -OutFile codecov.sh
bash codecov.sh -f “coverage.xml”

Expected behavior: Appveyor detected

Actual behavior: “No CI provider detected.”

Flakiness? Happens everytime but seems to have worked with the bash script at version d109cc7

Interesting. Can you create an issue on the repo GitHub - codecov/codecov-bash: Global coverage report uploader for Codecov and ping me so we can take a look?