2018-11-20 23:02:06 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-11-29 12:08:10 +01:00
|
|
|
set -e
|
2019-01-09 00:13:12 +01:00
|
|
|
|
2019-10-22 01:17:32 +02:00
|
|
|
if [[ -n "$IS_PIPELINE_JOB" ]] ; then
|
2019-09-11 20:58:28 +02:00
|
|
|
source src/dev/ci_setup/setup_env.sh
|
|
|
|
fi
|
2018-11-20 23:02:06 +01:00
|
|
|
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
|
2019-09-11 20:58:28 +02:00
|
|
|
if [[ -z "$IS_PIPELINE_JOB" ]] ; then
|
2019-09-13 20:15:38 +02:00
|
|
|
yarn run grunt functionalTests:ensureAllTestsInCiGroup;
|
2019-09-11 20:58:28 +02:00
|
|
|
node scripts/build --debug --oss;
|
|
|
|
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-05-01 23:02:33 +02:00
|
|
|
checks-reporter-with-killswitch "Functional tests / Group ${CI_GROUP}" yarn run grunt "run:functionalTests_ciGroup${CI_GROUP}";
|
2018-11-20 23:02:06 +01:00
|
|
|
|
|
|
|
if [ "$CI_GROUP" == "1" ]; then
|
2019-10-25 18:57:46 +02:00
|
|
|
source test/scripts/jenkins_build_kbn_tp_sample_panel_action.sh
|
2019-05-01 23:02:33 +02:00
|
|
|
yarn run grunt run:pluginFunctionalTestsRelease --from=source;
|
|
|
|
yarn run grunt run:interpreterFunctionalTestsRelease;
|
2019-08-30 19:36:51 +02:00
|
|
|
fi
|