39 lines
831 B
Bash
Executable File
39 lines
831 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
APP_DIR="${ROOT_DIR}/apps/platform"
|
|
LANE="${1:-fast-feedback}"
|
|
|
|
case "${LANE}" in
|
|
fast-feedback|fast|default)
|
|
COMPOSER_SCRIPT="test"
|
|
;;
|
|
confidence)
|
|
COMPOSER_SCRIPT="test:confidence"
|
|
;;
|
|
browser)
|
|
COMPOSER_SCRIPT="test:browser"
|
|
;;
|
|
heavy-governance|heavy)
|
|
COMPOSER_SCRIPT="test:heavy"
|
|
;;
|
|
profiling|profile)
|
|
COMPOSER_SCRIPT="test:profile"
|
|
;;
|
|
junit)
|
|
COMPOSER_SCRIPT="test:junit"
|
|
;;
|
|
*)
|
|
echo "Unknown test lane: ${LANE}" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
shift || true
|
|
|
|
cd "${APP_DIR}"
|
|
|
|
exec ./vendor/bin/sail composer run --timeout=0 "${COMPOSER_SCRIPT}" -- "$@" |