@@ -5,6 +5,7 @@ var os = require("os");
5
5
var path = require ( "path" ) ;
6
6
var child_process = require ( "child_process" ) ;
7
7
var Linter = require ( "tslint" ) ;
8
+ var fold = require ( "travis-fold" ) ;
8
9
var runTestsInParallel = require ( "./scripts/mocha-parallel" ) . runTestsInParallel ;
9
10
10
11
// Variables
@@ -560,9 +561,19 @@ compileFile(
560
561
desc ( "Builds language service server library" ) ;
561
562
task ( "lssl" , [ tsserverLibraryFile , tsserverLibraryDefinitionFile ] ) ;
562
563
564
+ desc ( "Emit the start of the build fold" ) ;
565
+ task ( "build-fold-start" , [ ] , function ( ) {
566
+ if ( fold . isTravis ( ) ) console . log ( fold . start ( "build" ) ) ;
567
+ } ) ;
568
+
569
+ desc ( "Emit the end of the build fold" ) ;
570
+ task ( "build-fold-end" , [ ] , function ( ) {
571
+ if ( fold . isTravis ( ) ) console . log ( fold . end ( "build" ) ) ;
572
+ } ) ;
573
+
563
574
// Local target to build the compiler and services
564
575
desc ( "Builds the full compiler and services" ) ;
565
- task ( "local" , [ "generate-diagnostics" , "lib" , tscFile , servicesFile , nodeDefinitionsFile , serverFile , builtGeneratedDiagnosticMessagesJSON , "lssl" ] ) ;
576
+ task ( "local" , [ "build-fold-start" , " generate-diagnostics", "lib" , tscFile , servicesFile , nodeDefinitionsFile , serverFile , builtGeneratedDiagnosticMessagesJSON , "lssl" , "build-fold-end "] ) ;
566
577
567
578
// Local target to build only tsc.js
568
579
desc ( "Builds only the compiler" ) ;
@@ -1047,6 +1058,7 @@ var lintTargets = compilerSources
1047
1058
1048
1059
desc ( "Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex" ) ;
1049
1060
task ( "lint" , [ "build-rules" ] , function ( ) {
1061
+ if ( fold . isTravis ( ) ) console . log ( fold . start ( "lint" ) ) ;
1050
1062
var lintOptions = getLinterOptions ( ) ;
1051
1063
var failed = 0 ;
1052
1064
var fileMatcher = RegExp ( process . env . f || process . env . file || process . env . files || "" ) ;
@@ -1062,6 +1074,7 @@ task("lint", ["build-rules"], function() {
1062
1074
done [ target ] = true ;
1063
1075
}
1064
1076
}
1077
+ if ( fold . isTravis ( ) ) console . log ( fold . end ( "lint" ) ) ;
1065
1078
if ( failed > 0 ) {
1066
1079
fail ( 'Linter errors.' , failed ) ;
1067
1080
}
0 commit comments