2019-06-14 18:35:23 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-03-05 21:01:42 +01:00
|
|
|
source src/dev/ci_setup/setup_env.sh
|
2019-06-16 16:23:36 +02:00
|
|
|
source "$KIBANA_DIR/src/dev/ci_setup/setup_percy.sh"
|
|
|
|
|
2020-03-05 21:01:42 +01:00
|
|
|
echo " -> building and extracting default Kibana distributable"
|
|
|
|
cd "$KIBANA_DIR"
|
2021-06-30 01:17:51 +02:00
|
|
|
node scripts/build --debug
|
2021-02-08 18:47:55 +01:00
|
|
|
|
|
|
|
echo " -> shipping metrics from build to ci-stats"
|
2021-02-16 19:42:26 +01:00
|
|
|
node scripts/ship_ci_stats \
|
|
|
|
--metrics target/optimizer_bundle_metrics.json \
|
2021-09-16 21:06:46 +02:00
|
|
|
--metrics build/kibana/node_modules/@kbn/ui-shared-deps-src/shared_built_assets/metrics.json
|
2021-02-08 18:47:55 +01:00
|
|
|
|
2020-03-05 21:01:42 +01:00
|
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
2020-08-04 21:27:04 +02:00
|
|
|
installDir="$KIBANA_DIR/install/kibana"
|
2020-03-05 21:01:42 +01:00
|
|
|
mkdir -p "$installDir"
|
|
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
|
2021-05-12 21:24:25 +02:00
|
|
|
mkdir -p "$WORKSPACE/kibana-build"
|
|
|
|
cp -pR install/kibana/. $WORKSPACE/kibana-build/
|
2020-08-04 21:27:04 +02:00
|
|
|
|
2020-07-14 01:15:48 +02:00
|
|
|
cd "$KIBANA_DIR"
|
|
|
|
source "test/scripts/jenkins_xpack_saved_objects_field_metrics.sh"
|