#!/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:report" ;; confidence) COMPOSER_SCRIPT="test:report:confidence" ;; browser) COMPOSER_SCRIPT="test:report:browser" ;; heavy-governance|heavy) COMPOSER_SCRIPT="test:report:heavy" ;; profiling|profile) COMPOSER_SCRIPT="test:report:profile" ;; *) echo "Unknown test lane: ${LANE}" >&2 exit 1 ;; esac cd "${APP_DIR}" exec ./vendor/bin/sail composer run --timeout=0 "${COMPOSER_SCRIPT}"