mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix: coverage issue with saucelabs (#3540)
* Saucelabs seems to have issues with Edge and the `karma-coverage` plugin. * Running on Browserstack seems to be work without any flakiness and also makes the build faster (runs less browsers than on saucelabs)
This commit is contained in:
committed by
tinayuangao
parent
675c9df9c2
commit
4d4a63e641
@@ -25,8 +25,8 @@ else
|
||||
$(npm bin)/gulp ci:test
|
||||
fi
|
||||
|
||||
# Don't upload coverage for both test modes (browserstack and saucelabs) and inside of PRs.
|
||||
if [[ "$MODE" == "saucelabs_required" ]] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
# Upload coverage results if those are present.
|
||||
if [ -f dist/coverage/coverage-summary.json ]; then
|
||||
$(npm bin)/gulp ci:coverage
|
||||
fi
|
||||
|
||||
|
||||
+3
-1
@@ -106,7 +106,9 @@ module.exports = (config) => {
|
||||
if (process.env['TRAVIS']) {
|
||||
let buildId = `TRAVIS #${process.env.TRAVIS_BUILD_NUMBER} (${process.env.TRAVIS_BUILD_ID})`;
|
||||
|
||||
if (process.env['TRAVIS_PULL_REQUEST'] === 'false') {
|
||||
if (process.env['TRAVIS_PULL_REQUEST'] === 'false' &&
|
||||
process.env['MODE'] === "browserstack_required") {
|
||||
|
||||
config.preprocessors['dist/@angular/material/**/!(*+(.|-)spec).js'] = ['coverage'];
|
||||
config.reporters.push('coverage');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user