1
0
forked from icd/rentgen
rentgen/tests/pre-commit
Jacek Wielemborek 86f5c86f4f refactor: move Docker testing to pre-commit hook
- 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>
2025-10-26 18:10:43 +01:00

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!"