Archived
1
0

Prevent cache changes when patch updates

This commit is contained in:
Asher 2019-10-25 13:12:04 -05:00
parent 58f7f5b769
commit 168ccb0dfc
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
2 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: "MacOS build" - name: "MacOS build"
os: osx os: osx
if: tag IS blank if: tag IS blank
script: travis_wait 40 scripts/ci.bash script: travis_wait 60 scripts/ci.bash
git: git:
depth: 3 depth: 3

View File

@ -303,14 +303,16 @@ class Builder {
]); ]);
}); });
// This is so it doesn't get cached along with VS Code. There's no point // Prevent needless cache changes.
// since there isn't anything like an incremental build. await this.task("Cleaning for smaller cache", () => {
await this.task("Removing build files for smaller cache", () => {
return Promise.all([ return Promise.all([
fs.remove(serverPath), fs.remove(serverPath),
fs.remove(path.join(vscodeSourcePath, "out-vscode")), fs.remove(path.join(vscodeSourcePath, "out-vscode")),
fs.remove(path.join(vscodeSourcePath, "out-vscode-min")), fs.remove(path.join(vscodeSourcePath, "out-vscode-min")),
fs.remove(path.join(vscodeSourcePath, "out-build")), fs.remove(path.join(vscodeSourcePath, "out-build")),
util.promisify(cp.exec)("git reset --hard", { cwd: vscodeSourcePath }).then(() => {
return util.promisify(cp.exec)("git clean -fd", { cwd: vscodeSourcePath });
}),
]); ]);
}); });