18 lines
667 B
Bash
Executable file
18 lines
667 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 OSS Kibana distributable for use in functional tests"
|
|
node scripts/build --debug --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 kibana directory"
|
|
yarn percy exec -t 10000 -- -- \
|
|
node scripts/functional_tests \
|
|
--debug --bail \
|
|
--kibana-install-dir "$installDir" \
|
|
--config test/visual_regression/config.ts;
|