* chore(NA): move packages assets optimization into the distributable build * chore(NA): include terser task on distributable build * chore(NA): migrate everything into the build tasks * chore(NA): update webpack config to include react profiler * chore(NA): optional fsevents * chore(NA): redo optional fsevents * chore(NA): remove noparse for fsevents * chore(NA): include missing task declaration * chore(NA): include sourcemaps * chore(NA): include metrics bundle file generation during distributable build * chore(NA): correctly setup paths * chore(NA): change sourcemap types * chore(NA): remove useless sourcemaps Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
24 lines
806 B
Bash
Executable file
24 lines
806 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source src/dev/ci_setup/setup_env.sh
|
|
source "$KIBANA_DIR/src/dev/ci_setup/setup_percy.sh"
|
|
|
|
echo " -> building and extracting default Kibana distributable"
|
|
cd "$KIBANA_DIR"
|
|
node scripts/build --debug
|
|
|
|
echo " -> shipping metrics from build to ci-stats"
|
|
node scripts/ship_ci_stats \
|
|
--metrics target/optimizer_bundle_metrics.json \
|
|
--metrics build/kibana/node_modules/@kbn/ui-shared-deps/shared_built_assets/metrics.json
|
|
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|
installDir="$KIBANA_DIR/install/kibana"
|
|
mkdir -p "$installDir"
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
mkdir -p "$WORKSPACE/kibana-build"
|
|
cp -pR install/kibana/. $WORKSPACE/kibana-build/
|
|
|
|
cd "$KIBANA_DIR"
|
|
source "test/scripts/jenkins_xpack_saved_objects_field_metrics.sh"
|