2018-11-16 07:39:53 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-11-29 11:59:22 +01:00
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2018-11-17 01:40:14 +01:00
|
|
|
# run setup script that gives us node, yarn, and bootstraps the project
|
2018-11-16 07:39:53 +01:00
|
|
|
source "src/dev/ci_setup/setup.sh";
|
2018-11-17 01:40:14 +01:00
|
|
|
|
2018-11-26 19:33:33 +01:00
|
|
|
# download es snapshots
|
2018-11-17 01:40:14 +01:00
|
|
|
node scripts/es snapshot --download-only;
|
|
|
|
|
2018-11-26 19:33:33 +01:00
|
|
|
# download reporting browsers
|
|
|
|
cd "x-pack";
|
|
|
|
yarn gulp prepare;
|
|
|
|
cd -;
|
|
|
|
|
2018-11-17 01:40:14 +01:00
|
|
|
# archive cacheable directories
|
|
|
|
mkdir -p "$HOME/.kibana/bootstrap_cache"
|
|
|
|
tar -cf "$HOME/.kibana/bootstrap_cache/master.tar" \
|
|
|
|
node_modules \
|
|
|
|
packages/*/node_modules \
|
|
|
|
x-pack/node_modules \
|
|
|
|
x-pack/plugins/*/node_modules \
|
2018-11-26 19:33:33 +01:00
|
|
|
x-pack/plugins/reporting/.chromium \
|
|
|
|
x-pack/plugins/reporting/.phantom \
|
2018-11-17 01:40:14 +01:00
|
|
|
.es;
|