Skip to content

Commit 9c61d0e

Browse files
authored
Use codecov for coverage reports (#6941)
1 parent 69e74ff commit 9c61d0e

File tree

6 files changed

+30
-44
lines changed

6 files changed

+30
-44
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| `release` branch | `master` branch | Nightly CI | coverage (`master` branch) |
99
|-|-|-|-|
10-
| [![Build Status](https://dev.azure.com/ms/vscode-python/_apis/build/status/CI?branchName=release)](https://dev.azure.com/ms/vscode-python/_build/latest?definitionId=88&branchName=release) | [![Build Status](https://dev.azure.com/ms/vscode-python/_apis/build/status/CI?branchName=master)](https://dev.azure.com/ms/vscode-python/_build/latest?definitionId=88&branchName=master) | [![Build Status](https://dev.azure.com/ms/vscode-python/_apis/build/status/Nightly%20Build?branchName=master)](https://dev.azure.com/ms/vscode-python/_build/latest?definitionId=85&branchName=master) | [![Coverage Status](https://coveralls.io/repos/github/microsoft/vscode-python/badge.svg?branch=master)](https://coveralls.io/github/microsoft/vscode-python?branch=master) |
10+
| [![Build Status](https://dev.azure.com/ms/vscode-python/_apis/build/status/CI?branchName=release)](https://dev.azure.com/ms/vscode-python/_build/latest?definitionId=88&branchName=release) | [![Build Status](https://dev.azure.com/ms/vscode-python/_apis/build/status/CI?branchName=master)](https://dev.azure.com/ms/vscode-python/_build/latest?definitionId=88&branchName=master) | [![Build Status](https://dev.azure.com/ms/vscode-python/_apis/build/status/Nightly%20Build?branchName=master)](https://dev.azure.com/ms/vscode-python/_build/latest?definitionId=85&branchName=master) | [![codecov](https://codecov.io/gh/microsoft/vscode-python/branch/master/graph/badge.svg)](https://codecov.io/gh/microsoft/vscode-python) |
1111

1212
[[Development build](https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix)]
1313

build/ci/codecov.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 0
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
parsers:
16+
gcov:
17+
branch_detection:
18+
conditional: yes
19+
loop: yes
20+
method: no
21+
macro: no
22+
23+
comment:
24+
branch: !release*
25+
layout: "header, diff, files"
26+
behavior: default
27+
require_changes: no

build/ci/templates/generate_upload_coverage.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,6 @@ steps:
1515
summaryFileLocation: "$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
1616
reportDirectory: "$(System.DefaultWorkingDirectory)/coverage"
1717

18-
- bash: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
19-
displayName: 'Upload coverage to coveralls'
20-
continueOnError: true
21-
condition: contains(variables['TestsToRun'], 'testUnitTests')
22-
failOnStderr: false
23-
# Set necessary env variables for coveralls, as they don't support Azure Devops.
24-
# Set variables based on documentation and the coveralls (npm package) source code. 😊.
25-
env:
26-
COVERALLS_SERVICE_JOB_ID: $(Build.BuildId)
27-
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN)
28-
COVERALLS_SERVICE_NAME: $(COVERALLS_SERVICE_NAME)
29-
COVERALLS_GIT_COMMIT: $(Build.SourceVersion)
30-
COVERALLS_GIT_BRANCH: $(Build.SourceBranchName)
31-
CI_PULL_REQUEST: $(System.PullRequest.PullRequestNumber)
32-
3318
- bash: cat ./coverage/lcov.info | ./node_modules/.bin/codecov --pipe
3419
displayName: 'Upload coverage to codecov'
3520
continueOnError: true

news/3 Code Health/6938.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upload coverage reports to [codecov](https://codecov.io/gh/microsoft/vscode-python).

package-lock.json

Lines changed: 0 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,8 +2545,8 @@
25452545
"@types/glob": "^5.0.35",
25462546
"@types/html-webpack-plugin": "^3.2.0",
25472547
"@types/iconv-lite": "^0.0.1",
2548-
"@types/jsdom": "^11.12.0",
25492548
"@types/jquery": "^1.10.35",
2549+
"@types/jsdom": "^11.12.0",
25502550
"@types/loader-utils": "^1.1.3",
25512551
"@types/lodash": "^4.14.104",
25522552
"@types/md5": "^2.1.32",
@@ -2592,7 +2592,6 @@
25922592
"codecov": "^3.5.0",
25932593
"colors": "^1.2.1",
25942594
"copy-webpack-plugin": "^4.6.0",
2595-
"coveralls": "^3.0.4",
25962595
"cross-spawn": "^6.0.5",
25972596
"css-loader": "^1.0.1",
25982597
"cucumber-html-reporter": "^4.0.5",

0 commit comments

Comments
 (0)