Merge pull request #13517 from MoonlightSentinel/azure-fail

Coverage: Don't fail if reports could not be uploaded to CodeCov

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2022-01-13 06:52:21 +00:00 committed by GitHub
commit 14b9c01669
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -133,9 +133,6 @@ CC="$CC" ./run --environment --jobs=$N "${targets[@]}" "${args[@]}"
################################################################################ ################################################################################
if [ "${DMD_TEST_COVERAGE:-0}" = "1" ] ; then if [ "${DMD_TEST_COVERAGE:-0}" = "1" ] ; then
cd $DMD_DIR
OS_NAME=windows source ci/codecov.sh
# Skip druntime & phobos tests # Skip druntime & phobos tests
exit 0 exit 0
fi fi

View file

@ -12,3 +12,11 @@ steps:
bash --version bash --version
sh --login .azure-pipelines/windows.sh sh --login .azure-pipelines/windows.sh
displayName: Build and test displayName: Build and test
- bash: |
set -eux
source .azure-pipelines/lib.sh
OS_NAME=windows source ci/codecov.sh
displayName: "Upload coverage report"
condition: eq( variables.DMD_TEST_COVERAGE, 1)
continueOnError: true