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 default Kibana distributable"
|
|
|
|
cd "$KIBANA_DIR"
|
|
|
|
node scripts/build --debug --no-oss
|
|
|
|
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
|
|
|
|
|
|
|
|
echo " -> running visual regression tests from x-pack directory"
|
|
|
|
cd "$XPACK_DIR"
|
2020-07-03 14:49:48 +02:00
|
|
|
yarn percy exec -t 10000 -- -- \
|
2019-06-14 20:16:48 +02:00
|
|
|
node scripts/functional_tests \
|
|
|
|
--debug --bail \
|
2020-03-06 16:40:17 +01:00
|
|
|
--kibana-install-dir "$installDir" \
|
|
|
|
--config test/visual_regression/config.ts;
|
2020-06-10 03:30:37 +02:00
|
|
|
|
2020-06-29 17:34:44 +02:00
|
|
|
# cd "$KIBANA_DIR"
|
|
|
|
# source "test/scripts/jenkins_xpack_page_load_metrics.sh"
|
2020-07-10 01:59:00 +02:00
|
|
|
|
|
|
|
cd "$KIBANA_DIR"
|
|
|
|
source "test/scripts/jenkins_xpack_saved_objects_field_metrics.sh"
|