This commit is contained in:
FAREAST\xumia 2021-10-20 10:09:16 +08:00
Родитель 89a7c1b614
Коммит 98f76020b8
3 изменённых файлов: 7 добавлений и 3 удалений

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

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

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

@ -16,7 +16,11 @@ steps:
target_branch=$(System.PullRequest.TargetBranch)
compare_branch=origin/${target_branch#refs/heads/}
mkdir -p .diff-coverage/htmlcov
sudo pip install diff-cover > /dev/null
if [ -n "$(which pip3)" ]; then
sudo pip3 install diff-cover > /dev/null
else
sudo pip install diff-cover > /dev/null
fi
diff-cover $converage_files --ignore-unstaged --compare-branch=$compare_branch --json-report=.diff-coverage/diff-cover.json > /dev/null
diff-cover $converage_files --ignore-unstaged --compare-branch=$compare_branch --html-report=.diff-coverage/htmlcov/index.html
if [ "$HAS_PUBLISH_CODE_COVERAGE_RESULTS" == "true" ] && [ "$DIFF_COVER_FULLCOVERAGELINK_DISABLE" != "true" ]; then

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

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