Skip to content

Commit

Permalink
add pull request arg to coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Jun 1, 2021
1 parent fc0974b commit 10f7549
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .azure-pipelines/jobs/tests.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
script: |
set -euxo pipefail
dotnet tool update --global coveralls.net
pull_request_arg=""
if [ ! -z "$(System.PullRequest.PullRequestId)" ]; then
pull_request_arg="--pullRequest=$(System.PullRequest.PullRequestId)"
fi
csmacnz.Coveralls \
--opencover \
-i coverage/coverage.opencover.xml \
Expand All @@ -82,7 +86,9 @@ jobs:
--commitAuthor "$(git show -s --format='%an')" \
--commitEmail "$(git show -s --format='%ae')" \
--commitMessage "$(Build.SourceVersionMessage)" \
--jobId "$(Build.BuildId)"
--jobId "$(Build.BuildId)" \
"$pull_request_arg" \
--dryrun
env:
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN)

Expand Down

0 comments on commit 10f7549

Please # to comment.