kibana/.ci/packer_cache.sh

27 lines
603 B
Bash
Raw Normal View History

#!/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
source "src/dev/ci_setup/setup.sh";
2018-11-17 01:40:14 +01:00
# download es snapshots
2018-11-17 01:40:14 +01:00
node scripts/es snapshot --download-only;
# 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 \
x-pack/plugins/reporting/.chromium \
x-pack/plugins/reporting/.phantom \
2018-11-17 01:40:14 +01:00
.es;