Skip to content

Commit db9a0c5

Browse files
committed
Travis builds post coverage info to coveralls.io and add README badge.
1 parent fc167f8 commit db9a0c5

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ out-editor-min/
1010
out-monaco-editor-core/
1111
out-vscode/
1212
out-vscode-min/
13-
build/node_modules
13+
build/node_modules
14+
coverage/

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ script:
4242
- gulp electron
4343
- gulp compile
4444
- gulp optimize-vscode
45-
- ./scripts/test.sh
45+
- ./scripts/test.sh --coverage
4646
- ./scripts/test-integration.sh
47+
48+
after_success:
49+
- cat coverage/lcov.info | node_modules/.bin/coveralls

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Visual Studio Code - Open Source
22

3-
[![Build Status](https://travis-ci.org/Microsoft/vscode.svg?branch=master)](https://travis-ci.org/Microsoft/vscode) [![Build status](https://ci.appveyor.com/api/projects/status/vuhlhg80tj3e2a0l?svg=true)](https://ci.appveyor.com/project/VSCode/vscode)
3+
[![Build Status](https://travis-ci.org/Microsoft/vscode.svg?branch=master)](https://travis-ci.org/Microsoft/vscode)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/vuhlhg80tj3e2a0l?svg=true)](https://ci.appveyor.com/project/VSCode/vscode)
5+
[![Coverage Status](https://img.shields.io/coveralls/Microsoft/vscode/master.svg)](https://coveralls.io/github/Microsoft/vscode?branch=master)
46

57
[VS Code](https://code.visualstudio.com) is a new type of tool that combines the simplicity of
68
a code editor with what developers need for their core edit-build-debug cycle. Code

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"azure-storage": "^0.3.1",
3939
"clean-css": "3.4.6",
4040
"clone": "^1.0.2",
41+
"coveralls": "^2.11.11",
4142
"debounce": "^1.0.0",
4243
"documentdb": "^1.5.1",
4344
"event-stream": "^3.1.7",

test/all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ function main() {
107107
var collector = new istanbul.Collector();
108108
collector.add(global.__coverage__);
109109

110-
var reporter = new istanbul.Reporter(null, path.join(path.dirname(path.dirname(__dirname)), 'Code-Coverage'));
111-
reporter.add('html');
110+
var reporter = new istanbul.Reporter();
111+
reporter.addAll(['lcov', 'html']);
112112
reporter.write(collector, true, function () {});
113113
});
114114
}

0 commit comments

Comments
 (0)