-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overwrite ciGroup script to support jest in flaky testing job
- Loading branch information
Showing
1 changed file
with
2 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source test/scripts/jenkins_test_setup_oss.sh | ||
source src/dev/ci_setup/setup_env.sh | ||
|
||
if [[ -z "$CODE_COVERAGE" ]]; then | ||
checks-reporter-with-killswitch "Functional tests / Group ${CI_GROUP}" yarn run grunt "run:functionalTests_ciGroup${CI_GROUP}"; | ||
|
||
if [ "$CI_GROUP" == "1" ]; then | ||
source test/scripts/jenkins_build_kbn_tp_sample_panel_action.sh | ||
yarn run grunt run:pluginFunctionalTestsRelease --from=source; | ||
yarn run grunt run:exampleFunctionalTestsRelease --from=source; | ||
yarn run grunt run:interpreterFunctionalTestsRelease; | ||
fi | ||
else | ||
echo " -> Running Functional tests with code coverage" | ||
export NODE_OPTIONS=--max_old_space_size=8192 | ||
|
||
echo " -> making hard link clones" | ||
cd .. | ||
cp -RlP kibana "kibana${CI_GROUP}" | ||
cd "kibana${CI_GROUP}" | ||
|
||
echo " -> running tests from the clone folder" | ||
yarn run grunt "run:functionalTests_ciGroup${CI_GROUP}"; | ||
|
||
if [[ -d target/kibana-coverage/functional ]]; then | ||
echo " -> replacing kibana${CI_GROUP} with kibana in json files" | ||
sed -i "s|kibana${CI_GROUP}|kibana|g" target/kibana-coverage/functional/*.json | ||
echo " -> copying coverage to the original folder" | ||
mkdir -p ../kibana/target/kibana-coverage/functional | ||
cp -R target/kibana-coverage/functional/. ../kibana/target/kibana-coverage/functional/ | ||
fi | ||
fi | ||
node scripts/jest |