[ci] cache reporting browsers in packer (#26195)

This commit is contained in:
Spencer 2018-11-26 10:33:33 -08:00 committed by GitHub
parent 76635eb985
commit 44414c68b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,14 @@
# run setup script that gives us node, yarn, and bootstraps the project
source "src/dev/ci_setup/setup.sh";
# cache es snapshots
# download es snapshots
node scripts/es snapshot --download-only;
# download reporting browsers
cd "x-pack";
yarn gulp prepare;
cd -;
# archive cacheable directories
mkdir -p "$HOME/.kibana/bootstrap_cache"
tar -cf "$HOME/.kibana/bootstrap_cache/master.tar" \
@ -13,4 +18,6 @@ tar -cf "$HOME/.kibana/bootstrap_cache/master.tar" \
packages/*/node_modules \
x-pack/node_modules \
x-pack/plugins/*/node_modules \
x-pack/plugins/reporting/.chromium \
x-pack/plugins/reporting/.phantom \
.es;