2016-10-04 23:39:20 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2017-09-22 13:51:03 -04:00
|
|
|
// tslint:disable:no-console
|
2015-09-26 18:36:11 -04:00
|
|
|
module.exports = function travisFoldStart(name) {
|
|
|
|
if (process.env.TRAVIS) console.log('travis_fold:start:' + encode(name));
|
|
|
|
|
|
|
|
return function travisFoldEnd() {
|
|
|
|
if (process.env.TRAVIS) console.log('travis_fold:end:' + encode(name));
|
2017-09-22 13:51:03 -04:00
|
|
|
};
|
2015-09-26 18:36:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function encode(name) {
|
|
|
|
return name.replace(/\W/g, '-').replace(/-$/, '');
|
|
|
|
}
|