diff --git a/azure-pipelines-wrapper/.vscode/settings.json b/azure-pipelines-wrapper/.vscode/settings.json index 6550fac..b061082 100644 --- a/azure-pipelines-wrapper/.vscode/settings.json +++ b/azure-pipelines-wrapper/.vscode/settings.json @@ -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": "." } \ No newline at end of file diff --git a/code-diff-coverage/UpdateBuildProperties/task.json b/code-diff-coverage/UpdateBuildProperties/task.json index 18f43af..1fa9da1 100644 --- a/code-diff-coverage/UpdateBuildProperties/task.json +++ b/code-diff-coverage/UpdateBuildProperties/task.json @@ -11,7 +11,7 @@ "version": { "Major": 1, "Minor": 0, - "Patch": 13 + "Patch": 16 }, "demands": [], "instanceNameFormat": "Publish code coverage", diff --git a/code-diff-coverage/pull-request-coverage-task.yml b/code-diff-coverage/pull-request-coverage-task.yml index 47a3b41..20b7400 100644 --- a/code-diff-coverage/pull-request-coverage-task.yml +++ b/code-diff-coverage/pull-request-coverage-task.yml @@ -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" diff --git a/code-diff-coverage/vss-extension.json b/code-diff-coverage/vss-extension.json index c08a8ba..b7f309f 100644 --- a/code-diff-coverage/vss-extension.json +++ b/code-diff-coverage/vss-extension.json @@ -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,