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"
|
2020-07-09 23:58:11 +02:00
|
|
|
node scripts/build --debug --no-oss
|
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 \
|
|
|
|
--metrics packages/kbn-ui-shared-deps/target/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
|
|
|
|
|
2020-08-04 21:27:04 +02:00
|
|
|
mkdir -p "$WORKSPACE/kibana-build-xpack"
|
|
|
|
cp -pR install/kibana/. $WORKSPACE/kibana-build-xpack/
|
|
|
|
|
2020-07-14 01:15:48 +02:00
|
|
|
cd "$KIBANA_DIR"
|
|
|
|
source "test/scripts/jenkins_xpack_saved_objects_field_metrics.sh"
|