Azure: Fix CodeCov upload by using a proper login shell

The CodeCov script needs to be run with a `--login` shell s.t. it has
access to `shasum`,... .

(The previous draft PR was merged with an allowed failure...)
This commit is contained in:
MoonlightSentinel 2022-01-13 12:32:46 +01:00 committed by The Dlang Bot
parent b06929a2c7
commit 2a78210c22
2 changed files with 16 additions and 5 deletions

View file

@ -13,10 +13,10 @@ steps:
sh --login .azure-pipelines/windows.sh
displayName: Build and test
- bash: |
set -eux
source .azure-pipelines/lib.sh
OS_NAME=windows source ci/codecov.sh
# Try to upload the coverage files from the previous step to CodeCov
# This job is allowed to fail s.t. it does not block PR's in case of
# environmental issues
- script: bash --login -c "OS_NAME=windows source ci/codecov.sh"
displayName: "Upload coverage report"
condition: eq( variables.DMD_TEST_COVERAGE, 1)
continueOnError: true