kibana/test/scripts/jenkins_ci_group.sh

32 lines
747 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-11-29 12:08:10 +01:00
set -e
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
"$(FORCE_COLOR=0 yarn bin)/grunt" functionalTests:ensureAllTestsInCiGroup;
node scripts/build --debug --oss;
export TEST_BROWSER_HEADLESS=1
"$(FORCE_COLOR=0 yarn bin)/grunt" "run:functionalTests_ciGroup${CI_GROUP}";
if [ "$CI_GROUP" == "1" ]; then
# build kbn_tp_sample_panel_action
cd test/plugin_functional/plugins/kbn_tp_sample_panel_action;
yarn build;
cd -;
"$(FORCE_COLOR=0 yarn bin)/grunt" run:pluginFunctionalTestsRelease --from=source;
"$(FORCE_COLOR=0 yarn bin)/grunt" run:interpreterFunctionalTestsRelease;
fi