2019-06-14 20:16:48 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-03-06 16:40:17 +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-06 16:40:17 +01:00
|
|
|
echo " -> building and extracting OSS Kibana distributable for use in functional tests"
|
|
|
|
node scripts/build --debug --oss
|
2021-02-09 00:40:11 +01:00
|
|
|
|
|
|
|
echo " -> shipping metrics from build to ci-stats"
|
2021-02-16 22:01: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-09 00:40:11 +01:00
|
|
|
|
2020-03-06 16:40:17 +01:00
|
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|
|
|
installDir="$PARENT_DIR/install/kibana"
|
|
|
|
mkdir -p "$installDir"
|
|
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|