2018-11-20 23:02:06 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-11-29 12:08:10 +01:00
|
|
|
set -e
|
|
|
|
|
2019-01-09 00:13:12 +01:00
|
|
|
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
|
|
|
|
|
2018-11-20 23:02:06 +01:00
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" functionalTests:ensureAllTestsInCiGroup;
|
|
|
|
|
|
|
|
node scripts/build --debug --oss;
|
|
|
|
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
|
2019-03-13 19:51:06 +01:00
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" "run:functionalTests_ciGroup${CI_GROUP}";
|
2018-11-20 23:02:06 +01:00
|
|
|
|
|
|
|
if [ "$CI_GROUP" == "1" ]; then
|
2019-03-13 19:51:06 +01:00
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" run:pluginFunctionalTestsRelease;
|
2018-11-20 23:02:06 +01:00
|
|
|
fi
|