-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfull-check.sh
More file actions
executable file
·39 lines (32 loc) · 948 Bytes
/
Copy pathfull-check.sh
File metadata and controls
executable file
·39 lines (32 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Run full clippy AND full tests: the complete pre-commit/pre-push check.
# Usage: ./full-check.sh [-v|--verbose] [-s|--sequential]
#
# Runs in order:
# 1. clippy-all.sh (workspace + LLVM)
# 2. test-all.sh (workspace + LLVM + WASM + Ori interpreter + Ori LLVM)
#
# Clippy runs first for fast feedback — no point running tests if lint fails.
# All flags are forwarded to test-all.sh.
set -e
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
BOLD='\033[1m'
NC='\033[0m'
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo -e "${BOLD}=== Full Check: Clippy + Tests ===${NC}"
echo ""
# Phase 1: Clippy (fast feedback)
echo -e "${BOLD}--- Phase 1: Clippy ---${NC}"
echo ""
if ! "$SCRIPT_DIR/clippy-all.sh"; then
echo ""
echo -e "${RED}${BOLD}=== Clippy failed — skipping tests ===${NC}"
exit 1
fi
echo ""
# Phase 2: Tests (forward all flags)
echo -e "${BOLD}--- Phase 2: Tests ---${NC}"
echo ""
"$SCRIPT_DIR/test-all.sh" "$@"