2019-06-17 20:30:29 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-01-13 18:14:42 +01:00
|
|
|
source test/scripts/jenkins_test_setup.sh
|
2019-09-11 20:58:28 +02:00
|
|
|
|
2019-09-26 02:21:47 +02:00
|
|
|
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
|
2019-06-17 20:30:29 +02:00
|
|
|
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
|
|
|
|
checks-reporter-with-killswitch "Firefox smoke test" \
|
|
|
|
node scripts/functional_tests \
|
|
|
|
--bail --debug \
|
|
|
|
--kibana-install-dir "$installDir" \
|
|
|
|
--include-tag "smoke" \
|
|
|
|
--config test/functional/config.firefox.js;
|