forked from icd/rentgen
- Created tests/pre-commit hook that builds and runs all tests - Removed Docker usage documentation from README - Hook runs code_quality and integration_test stages sequentially 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
598 B
Bash
Executable File
22 lines
598 B
Bash
Executable File
#!/bin/bash
|
|
# Pre-commit hook for Rentgen extension
|
|
# Builds and runs verification tests before allowing commit
|
|
|
|
set -e
|
|
|
|
echo "Running pre-commit checks..."
|
|
|
|
# Build all stages
|
|
echo "Building Docker images..."
|
|
docker compose build
|
|
|
|
# Run code quality checks (typecheck + lint)
|
|
echo "Running code quality checks..."
|
|
docker compose up --abort-on-container-exit --exit-code-from rentgen_check rentgen_check
|
|
|
|
# Run integration tests
|
|
echo "Running integration tests..."
|
|
docker compose up --abort-on-container-exit --exit-code-from rentgen_verify rentgen_verify
|
|
|
|
echo "✓ All pre-commit checks passed!"
|