2018-11-20 23:02:06 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-01-27 23:10:34 +01:00
|
|
|
source test/scripts/jenkins_test_setup_xpack.sh
|
2020-01-08 21:08:48 +01:00
|
|
|
|
2020-01-27 23:10:34 +01:00
|
|
|
if [[ -z "$CODE_COVERAGE" ]]; then
|
2020-01-08 21:08:48 +01:00
|
|
|
echo " -> Running functional and api tests"
|
2019-09-11 20:58:28 +02:00
|
|
|
|
2020-01-08 21:08:48 +01:00
|
|
|
checks-reporter-with-killswitch "X-Pack Chrome Functional tests / Group ${CI_GROUP}" \
|
|
|
|
node scripts/functional_tests \
|
|
|
|
--debug --bail \
|
|
|
|
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
|
|
|
|
--include-tag "ciGroup$CI_GROUP"
|
2019-09-11 20:58:28 +02:00
|
|
|
|
2020-01-08 21:08:48 +01:00
|
|
|
echo ""
|
|
|
|
echo ""
|
2019-09-11 20:58:28 +02:00
|
|
|
else
|
2020-01-08 21:08:48 +01:00
|
|
|
echo " -> Running X-Pack functional tests with code coverage"
|
|
|
|
export NODE_OPTIONS=--max_old_space_size=8192
|
2020-01-29 14:36:47 +01:00
|
|
|
|
|
|
|
echo " -> making hard link clones"
|
|
|
|
cd ..
|
|
|
|
cp -RlP kibana "kibana${CI_GROUP}"
|
|
|
|
cd "kibana${CI_GROUP}/x-pack"
|
|
|
|
|
|
|
|
echo " -> running tests from the clone folder"
|
2020-04-16 19:40:55 +02:00
|
|
|
node scripts/functional_tests --debug --include-tag "ciGroup$CI_GROUP" --exclude-tag "skipCoverage" || true;
|
2020-01-29 14:36:47 +01:00
|
|
|
|
2020-06-05 17:34:25 +02:00
|
|
|
echo " -> moving junit output, silently fail in case of no report"
|
|
|
|
mkdir -p ../../kibana/target/junit
|
|
|
|
mv ../target/junit/* ../../kibana/target/junit/ || echo "copying junit failed"
|
|
|
|
|
|
|
|
echo " -> copying screenshots and html for failures"
|
|
|
|
cp -r test/functional/screenshots/* ../../kibana/x-pack/test/functional/screenshots/ || echo "copying screenshots failed"
|
|
|
|
cp -r test/functional/failure_debug ../../kibana/x-pack/test/functional/ || echo "copying html failed"
|
2020-01-29 14:36:47 +01:00
|
|
|
fi
|