-
Notifications
You must be signed in to change notification settings - Fork 6k
Improve CI caching #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Improve CI caching #416
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
44c96da
Adjust linux distro to ubuntu 14.04
kylecarbs 16313f3
Cache lib directory for speedy builds
kylecarbs 7809a6a
Fix path linking for default extensions
kylecarbs c36d5f3
Merge branch 'master' into ci
kylecarbs 528d852
Update reset
kylecarbs 7f264f9
Reset to head
kylecarbs 8c2ce09
Improve caching
kylecarbs df30a36
Still run yarn in CI
kylecarbs 63b9ad4
Update yarn before install
kylecarbs 02cd3f9
Increase cache timeout
kylecarbs 0ccb4d2
Install vscode from vstar
kylecarbs bb08893
Undo data-dir changes to CLI, add back clean, remove unused CI func
kylecarbs ba72dc6
Remove additional flags added
kylecarbs 7d08e8e
Remove unused dependency
kylecarbs f4cc2b1
Reset vscode install dir so patching always works
kylecarbs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ dist | |
out | ||
.DS_Store | ||
release | ||
.cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,12 @@ env: | |
matrix: | ||
include: | ||
- os: linux | ||
dist: ubuntu | ||
dist: trusty | ||
- os: osx | ||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libxkbfile-dev | ||
libsecret-1-dev; fi | ||
- npm install -g [email protected] | ||
script: | ||
- scripts/build.sh | ||
before_deploy: | ||
|
@@ -35,4 +36,8 @@ deploy: | |
on: | ||
repo: codercom/code-server | ||
branch: master | ||
cache: yarn | ||
cache: | ||
yarn: true | ||
timeout: 1000 | ||
directories: | ||
- .cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
# Builds a tarfile containing vscode sourcefiles neccessary for CI. | ||
# Done outside the CI and uploaded to object storage to reduce CI time. | ||
|
||
branch=1.32.0 | ||
dir=/tmp/vstar | ||
outfile=/tmp/vstar-$branch.tar.gz | ||
rm -rf $dir | ||
mkdir -p $dir | ||
|
||
cd $dir | ||
git clone https://github.com/microsoft/vscode --branch $branch --single-branch --depth=1 | ||
cd vscode | ||
|
||
yarn | ||
|
||
npx gulp vscode-linux-x64 --max-old-space-size=32384 | ||
rm -rf extensions build out* test | ||
cd .. | ||
mv *-x64/resources/app/extensions ./extensions | ||
rm -rf *-x64 | ||
tar -czvf $outfile . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,13 @@ | |
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67" | ||
integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ== | ||
|
||
"@types/tar@^4.0.0": | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/@types/tar/-/tar-4.0.0.tgz#e3239d969eeb693a012200613860d0eb871c94f0" | ||
integrity sha512-YybbEHNngcHlIWVCYsoj7Oo1JU9JqONuAlt1LlTH/lmL8BMhbzdFUgReY87a05rY1j8mfK47Del+TCkaLAXwLw== | ||
dependencies: | ||
"@types/node" "*" | ||
|
||
"@types/trash@^4.3.1": | ||
version "4.3.1" | ||
resolved "https://registry.yarnpkg.com/@types/trash/-/trash-4.3.1.tgz#4880ff17c4eb467f1a26774ea6328428403b5c57" | ||
|
@@ -723,6 +730,17 @@ cache-base@^1.0.1: | |
union-value "^1.0.0" | ||
unset-value "^1.0.0" | ||
|
||
cache-loader@^2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/cache-loader/-/cache-loader-2.0.1.tgz#5758f41a62d7c23941e3c3c7016e6faeb03acb07" | ||
integrity sha512-V99T3FOynmGx26Zom+JrVBytLBsmUCzVG2/4NnUKgvXN4bEV42R1ERl1IyiH/cvFIDA1Ytq2lPZ9tXDSahcQpQ== | ||
dependencies: | ||
loader-utils "^1.1.0" | ||
mkdirp "^0.5.1" | ||
neo-async "^2.6.0" | ||
normalize-path "^3.0.0" | ||
schema-utils "^1.0.0" | ||
|
||
[email protected]: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" | ||
|
@@ -916,6 +934,11 @@ commander@^2.12.1, commander@^2.18.0: | |
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" | ||
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== | ||
|
||
commander@^2.19.0: | ||
version "2.20.0" | ||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" | ||
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== | ||
|
||
commondir@^1.0.1: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" | ||
|
@@ -3305,7 +3328,7 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" | ||
integrity sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk= | ||
|
||
neo-async@^2.5.0: | ||
neo-async@^2.5.0, neo-async@^2.6.0: | ||
version "2.6.0" | ||
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.0.tgz#b9d15e4d71c6762908654b5183ed38b753340835" | ||
integrity sha512-MFh0d/Wa7vkKO3Y3LlacqAEeHK0mckVqzDieUKTT+KGxi+zIpeVsFxymkIiRpbpDziHc290Xr9A1O4Om7otoRA== | ||
|
@@ -3452,6 +3475,11 @@ normalize-path@^2.1.1: | |
dependencies: | ||
remove-trailing-separator "^1.0.1" | ||
|
||
normalize-path@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" | ||
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== | ||
|
||
npm-bundled@^1.0.1: | ||
version "1.0.5" | ||
resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979" | ||
|
@@ -4625,6 +4653,14 @@ source-map-support@^0.5.6, source-map-support@~0.5.6: | |
buffer-from "^1.0.0" | ||
source-map "^0.6.0" | ||
|
||
source-map-support@~0.5.10: | ||
version "0.5.11" | ||
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.11.tgz#efac2ce0800355d026326a0ca23e162aeac9a4e2" | ||
integrity sha512-//sajEx/fGL3iw6fltKMdPvy8kL3kJ2O3iuYlRoT3k9Kb4BjOoZ+BZzaNHeuaruSt+Kf3Zk9tnfAQg9/AJqUVQ== | ||
dependencies: | ||
buffer-from "^1.0.0" | ||
source-map "^0.6.0" | ||
|
||
source-map-url@^0.4.0: | ||
version "0.4.0" | ||
resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" | ||
|
@@ -4924,7 +4960,7 @@ tar@^2.0.0: | |
fstream "^1.0.2" | ||
inherits "2" | ||
|
||
tar@^4: | ||
tar@^4, tar@^4.4.8: | ||
version "4.4.8" | ||
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.8.tgz#b19eec3fde2a96e64666df9fdb40c5ca1bc3747d" | ||
integrity sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ== | ||
|
@@ -4951,6 +4987,29 @@ terser-webpack-plugin@^1.1.0: | |
webpack-sources "^1.1.0" | ||
worker-farm "^1.5.2" | ||
|
||
terser-webpack-plugin@^1.2.3: | ||
version "1.2.3" | ||
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.2.3.tgz#3f98bc902fac3e5d0de730869f50668561262ec8" | ||
integrity sha512-GOK7q85oAb/5kE12fMuLdn2btOS9OBZn4VsecpHDywoUC/jLhSAKOiYo0ezx7ss2EXPMzyEWFoE0s1WLE+4+oA== | ||
dependencies: | ||
cacache "^11.0.2" | ||
find-cache-dir "^2.0.0" | ||
schema-utils "^1.0.0" | ||
serialize-javascript "^1.4.0" | ||
source-map "^0.6.1" | ||
terser "^3.16.1" | ||
webpack-sources "^1.1.0" | ||
worker-farm "^1.5.2" | ||
|
||
terser@^3.16.1: | ||
version "3.17.0" | ||
resolved "https://registry.yarnpkg.com/terser/-/terser-3.17.0.tgz#f88ffbeda0deb5637f9d24b0da66f4e15ab10cb2" | ||
integrity sha512-/FQzzPJmCpjAH9Xvk2paiWrFq+5M6aVOf+2KRbwhByISDX/EujxsK+BAvrhb6H+2rtrLCHK9N01wO014vrIwVQ== | ||
dependencies: | ||
commander "^2.19.0" | ||
source-map "~0.6.1" | ||
source-map-support "~0.5.10" | ||
|
||
terser@^3.8.1: | ||
version "3.14.1" | ||
resolved "https://registry.yarnpkg.com/terser/-/terser-3.14.1.tgz#cc4764014af570bc79c79742358bd46926018a32" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.