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
|
|
|
function report {
|
|
|
|
if [[ -z "$PR_SOURCE_BRANCH" ]]; then
|
|
|
|
node src/dev/failed_tests/cli
|
|
|
|
else
|
|
|
|
echo "Failure issues not created on pull requests"
|
|
|
|
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
trap report EXIT
|
|
|
|
|
2018-11-20 23:02:06 +01:00
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" functionalTests:ensureAllTestsInCiGroup;
|
|
|
|
|
|
|
|
node scripts/build --debug --oss;
|
|
|
|
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
|
2019-04-24 00:47:05 +02:00
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" "run:functionalTests_ciGroup${CI_GROUP}";
|
2018-11-20 23:02:06 +01:00
|
|
|
|
|
|
|
if [ "$CI_GROUP" == "1" ]; then
|
2019-03-26 17:31:10 +01:00
|
|
|
# build kbn_tp_sample_panel_action
|
|
|
|
cd test/plugin_functional/plugins/kbn_tp_sample_panel_action;
|
2019-04-24 00:47:05 +02:00
|
|
|
yarn build;
|
2019-03-26 17:31:10 +01:00
|
|
|
cd -;
|
2019-04-24 00:47:05 +02:00
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" run:pluginFunctionalTestsRelease --from=source;
|
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" run:interpreterFunctionalTestsRelease;
|
2018-11-20 23:02:06 +01:00
|
|
|
fi
|