nuthatch/tests/check-v1.sh

42 lines
901 B
Shell
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
if ! git diff --quiet || ! git diff --cached --quiet || [[ -n "$(git ls-files --others --exclude-standard)" ]]; then
echo "check-v1 requires a clean checkout" >&2
exit 1
fi
fi
unset NUTHATCH_APP_INTERACTIVE
unset NUTHATCH_STREAMING_LANE
unset NUTHATCH_STREAMING_FIRST_LANE_ONLY
unset NUTHATCH_IDEMPOTENCY_LANE
unset NUTHATCH_IDEMPOTENCY_FIRST_LANE_ONLY
unset NUTHATCH_RECOVERY_TARGET
unset NUTHATCH_PROTOCOL_TARGET
npm --prefix web ci
targets=(
test
check-dependencies
check-fixture-lib
check-kind-matrix
check-storage-foundation
check-auth
check-streaming
check-idempotency
check-recovery
check-protocol
check-product
check-browser
check-runtime
check-specs
)
for target in "${targets[@]}"; do
make "$target"
done