-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distinguish between Appveyor and github-action #6580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just peeked into the codecov.sh file that's downloaded by the Appveyor config and it looks like there are some Appveyor specific variables that can be used.
Random example snippet from the bash script:
elif [[ "$CI" = "true" || "$CI" = "True" ]] && [[ "$APPVEYOR" = "true" || "$APPVEYOR" = "True" ]];
then
say "$e==>$x Appveyor CI detected."
# http://www.appveyor.com/docs/environment-variables
service="appveyor"
branch="$APPVEYOR_REPO_BRANCH"
build=$(urlencode "$APPVEYOR_JOB_ID")
pr="$APPVEYOR_PULL_REQUEST_NUMBER"
job="$APPVEYOR_ACCOUNT_NAME%2F$APPVEYOR_PROJECT_SLUG%2F$APPVEYOR_BUILD_VERSION"
slug="$APPVEYOR_REPO_NAME"
commit="$APPVEYOR_REPO_COMMIT"
build_url=$(urlencode "${APPVEYOR_URL}/project/${APPVEYOR_REPO_NAME}/builds/$APPVEYOR_BUILD_ID/job/${APPVEYOR_JOB_ID}")
Maybe there's also a variable to name it for Appveyor if needed.
Thanks, I found a cli option 🙂 |
Now trying the slightly more complicated syntax I've seen elsewhere in the file. |
Feel free to merge once you're feeling confident about your changes. |
The alternate syntax doesn't work either… I'm quite puzzled 🤔 |
Ah that would be because you have to use |
2144dbb
to
a0fb6fa
Compare
Right now, the Codecov UI displays downloads in a confusing way: You get an "appveyor" header, and then 2 list items with links to appveyor, followed by one list item with a link to Github. We didn't specify that appveyor name anywhere, maybe Codecov behaves differently on that platform. Let us see if specifying names for each system makes things clearer.
Running a bash script with Powershell does not seem to work great :/ |
Right now, the Codecov UI displays downloads in a confusing way: You get an "appveyor" header, and then 2 list items with links to appveyor, followed by one list item with a link to Github.
We didn't specify that appveyor name anywhere, maybe Codecov behaves differently on that platform. Let us see if specifying a name in the github action that uploads to Codecov allows to clarify things.
☝️ screenshot from https://app.codecov.io/github/doctrine/dbal/commit/976f3f374e25806542d789dba2f813db31274d40
The last link leads to https://github.com/doctrine/dbal/actions/runs/11615595861