Use python3 for diff-cover
This commit is contained in:
Родитель
89a7c1b614
Коммит
98f76020b8
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче