File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 30
30
- name : " MacOS build"
31
31
os : osx
32
32
if : tag IS blank
33
- script : travis_wait 40 scripts/ci.bash
33
+ script : travis_wait 60 scripts/ci.bash
34
34
35
35
git :
36
36
depth : 3
Original file line number Diff line number Diff line change @@ -303,14 +303,16 @@ class Builder {
303
303
] ) ;
304
304
} ) ;
305
305
306
- // This is so it doesn't get cached along with VS Code. There's no point
307
- // since there isn't anything like an incremental build.
308
- await this . task ( "Removing build files for smaller cache" , ( ) => {
306
+ // Prevent needless cache changes.
307
+ await this . task ( "Cleaning for smaller cache" , ( ) => {
309
308
return Promise . all ( [
310
309
fs . remove ( serverPath ) ,
311
310
fs . remove ( path . join ( vscodeSourcePath , "out-vscode" ) ) ,
312
311
fs . remove ( path . join ( vscodeSourcePath , "out-vscode-min" ) ) ,
313
312
fs . remove ( path . join ( vscodeSourcePath , "out-build" ) ) ,
313
+ util . promisify ( cp . exec ) ( "git reset --hard" , { cwd : vscodeSourcePath } ) . then ( ( ) => {
314
+ return util . promisify ( cp . exec ) ( "git clean -fd" , { cwd : vscodeSourcePath } ) ;
315
+ } ) ,
314
316
] ) ;
315
317
} ) ;
316
318
You can’t perform that action at this time.
0 commit comments