提交 ccd59d2c 编写于 作者: B Benjamin Pasero

build - add remap ignores for less errors in build

上级 f2982038
...@@ -38,10 +38,10 @@ install: ...@@ -38,10 +38,10 @@ install:
- ./scripts/npm.sh install - ./scripts/npm.sh install
script: script:
- gulp hygiene - gulp hygiene --silent
- gulp electron - gulp electron --silent
- gulp compile - gulp compile --silent
- gulp optimize-vscode - gulp optimize-vscode --silent
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --reporter dot --coverage; else ./scripts/test.sh --reporter dot; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --reporter dot --coverage; else ./scripts/test.sh --reporter dot; fi
- ./scripts/test-integration.sh - ./scripts/test-integration.sh
......
...@@ -105,7 +105,16 @@ function main() { ...@@ -105,7 +105,16 @@ function main() {
}); });
} }
var remappedCoverage = i_remap(global.__coverage__).getFinalCoverage(); var remapIgnores = [
'vs/base/common/winjs.base.js',
'vs/base/common/marked/marked.js',
'vs/nls.js',
'vs/css.js',
'vs/base/common/marked/raw.marked.js',
'vs/base/common/winjs.base.raw.js'
];
var remappedCoverage = i_remap(global.__coverage__, { exclude: new RegExp(remapIgnores.join('|')) }).getFinalCoverage();
// The remapped coverage comes out with broken paths // The remapped coverage comes out with broken paths
var toUpperDriveLetter = function(str) { var toUpperDriveLetter = function(str) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册