This commit is contained in:
Xuhui Miao 2021-09-20 10:24:36 +08:00
Родитель f72250b51d
Коммит 8c6fe02e3c
4 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -1,4 +1,4 @@
{
"appService.defaultWebAppToDeploy": "/subscriptions/90318812-d77d-426d-90a3-44997faf17f4/resourceGroups/azure-pipelines-wrapper/providers/Microsoft.Web/sites/azure-pipelines-wrapper",
"appService.defaultWebAppToDeploy": "",
"appService.deploySubpath": "."
}

Просмотреть файл

@ -11,7 +11,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 13
"Patch": 16
},
"demands": [],
"instanceNameFormat": "Publish code coverage",

Просмотреть файл

@ -14,11 +14,13 @@ steps:
target_branch=$(System.PullRequest.TargetBranch)
compare_branch=origin/${target_branch#refs/heads/}
mkdir -p .coverage/htmlcov
sudo pip install diff-cover
sudo pip install diff-cover > /dev/null
diff-cover $converage_files --ignore-unstaged --compare-branch=$compare_branch --json-report=.coverage/diff-cover.json > /dev/null
diff-cover $converage_files --ignore-unstaged --compare-branch=$compare_branch --html-report=.coverage/htmlcov/index.html
diff-cover $converage_files --ignore-unstaged --compare-branch=$compare_branch --json-report=.coverage/diff-cover.json
coverage_file=$(echo $converage_files | cut -d " " -f1)
coverage_file=$(realpath $coverage_file)
echo "code.coverage.file=$coverage_file"
echo "cover.threshold=$DIFF_COVER_CHECK_THRESHOLD"
echo "##vso[task.setvariable variable=disable.coverage.autogenerate;]true"
echo "##vso[task.setvariable variable=has.coverage.files;]true"
echo "##vso[task.setvariable variable=code.coverage.file;]$coverage_file"

Просмотреть файл

@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "code-diff-coverage",
"publisher": "CodeCoverageTask",
"version": "1.0.13",
"version": "1.0.16",
"name": "Code Diff Coverage",
"description": "Code Diff Coverage",
"public": false,