* Revert hiding Kibana icon, test Percy rendering * Update jobs.yml * Use percy token for kibana dev * Update Percy token to read from kibana-issues * Read correct field * increase timeout * Run each visual job 10 times * Revert last commit * Increase timeout * Disable visual tests and revert percy token * Fix jest tests * Another jest test fix
34 lines
991 B
Bash
Executable file
34 lines
991 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [[ -z "$IS_PIPELINE_JOB" ]] ; then
|
|
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
|
else
|
|
source src/dev/ci_setup/setup_env.sh
|
|
fi
|
|
|
|
source "$KIBANA_DIR/src/dev/ci_setup/setup_percy.sh"
|
|
|
|
if [[ -z "$IS_PIPELINE_JOB" ]] ; then
|
|
node scripts/build --debug --oss;
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-oss-*-linux-x86_64.tar.gz')"
|
|
installDir="$PARENT_DIR/install/kibana"
|
|
mkdir -p "$installDir"
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
else
|
|
installDir="$(realpath $PARENT_DIR/kibana/build/oss/kibana-*-SNAPSHOT-linux-x86_64)"
|
|
destDir=${installDir}-${CI_WORKER_NUMBER}
|
|
cp -R "$installDir" "$destDir"
|
|
|
|
export KIBANA_INSTALL_DIR="$destDir"
|
|
fi
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
checks-reporter-with-killswitch "Kibana visual regression tests" \
|
|
yarn run percy exec -t 500 \
|
|
node scripts/functional_tests \
|
|
--debug --bail \
|
|
--kibana-install-dir "$installDir" \
|
|
--config test/visual_regression/config.ts;
|