Since this is no longer part of a reporting task in Jenkins, we no longer need to re-run kbn bootstrap when generating a report. We use the PR_SOURCE_BRANCH environment variable to prevent genererating Github issues when we are on a PR. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
32 lines
491 B
Bash
Executable file
32 lines
491 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
function report {
|
|
if [[ -z "$PR_SOURCE_BRANCH" ]]; then
|
|
cd "$KIBANA_DIR"
|
|
node src/dev/failed_tests/cli
|
|
else
|
|
echo "Failure issues not created on pull requests"
|
|
fi
|
|
}
|
|
|
|
trap report EXIT
|
|
|
|
source src/dev/ci_setup/checkout_sibling_es.sh
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
echo " -> Running mocha tests"
|
|
cd "$XPACK_DIR"
|
|
yarn test
|
|
echo ""
|
|
echo ""
|
|
|
|
|
|
echo " -> Running jest tests"
|
|
cd "$XPACK_DIR"
|
|
node scripts/jest --ci --no-cache --verbose
|
|
echo ""
|
|
echo ""
|