* Run failed_tests/cli once per node
* force failures for testing
* Revert "force failures for testing"
This reverts commit 3ddd9240fe
.
36 lines
953 B
Bash
Executable file
36 lines
953 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
|
|
|
|
if [[ -z "$IS_PIPELINE_JOB" ]] ; then
|
|
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
|
|
export KIBANA_INSTALL_DIR="$installDir"
|
|
else
|
|
installDir="$PARENT_DIR/install/kibana"
|
|
destDir="${installDir}-${CI_WORKER_NUMBER}"
|
|
cp -R "$installDir" "$destDir"
|
|
|
|
export KIBANA_INSTALL_DIR="$destDir"
|
|
fi
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
cd "$XPACK_DIR"
|
|
|
|
checks-reporter-with-killswitch "X-Pack firefox smoke test" \
|
|
node scripts/functional_tests \
|
|
--debug --bail \
|
|
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
|
|
--include-tag "smoke" \
|
|
--config test/functional/config.firefox.js;
|