581755098a
* 2 jobs for Firefox tests * review fixes * make sh files executable * add check reporter
49 lines
1.4 KiB
Bash
Executable file
49 lines
1.4 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
echo " -> Ensuring all functional tests are in a ciGroup"
|
|
cd "$XPACK_DIR"
|
|
node scripts/functional_tests --assert-none-excluded \
|
|
--include-tag ciGroup1 \
|
|
--include-tag ciGroup2 \
|
|
--include-tag ciGroup3 \
|
|
--include-tag ciGroup4 \
|
|
--include-tag ciGroup5 \
|
|
--include-tag ciGroup6 \
|
|
--include-tag ciGroup7 \
|
|
--include-tag ciGroup8 \
|
|
--include-tag ciGroup9 \
|
|
--include-tag ciGroup10
|
|
|
|
echo " -> building and extracting default Kibana distributable for use in functional tests"
|
|
cd "$KIBANA_DIR"
|
|
node scripts/build --debug --no-oss
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|
installDir="$PARENT_DIR/install/kibana"
|
|
mkdir -p "$installDir"
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
echo " -> Running functional and api tests"
|
|
cd "$XPACK_DIR"
|
|
|
|
checks-reporter-with-killswitch "X-Pack Chrome Functional tests / Group ${CI_GROUP}" \
|
|
node scripts/functional_tests \
|
|
--debug --bail \
|
|
--kibana-install-dir "$installDir" \
|
|
--include-tag "ciGroup$CI_GROUP"
|
|
|
|
echo ""
|
|
echo ""
|
|
|
|
# checks-reporter-with-killswitch "X-Pack Firefox Functional tests / Group ${CI_GROUP}" \
|
|
# node scripts/functional_tests --debug --bail \
|
|
# --kibana-install-dir "$installDir" \
|
|
# --include-tag "ciGroup$CI_GROUP" \
|
|
# --config "test/functional/config.firefox.js"
|
|
# echo ""
|
|
# echo ""
|