62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
|
|
.PHONY: help test lint validate health-check deploy validate-docs
|
||
|
|
|
||
|
|
help:
|
||
|
|
@echo "Available targets:"
|
||
|
|
@echo " test - Run all tests"
|
||
|
|
@echo " lint - Lint all scripts"
|
||
|
|
@echo " validate - Validate scripts and deployment"
|
||
|
|
@echo " health-check - Run health checks"
|
||
|
|
@echo " validate-docs - Validate documentation"
|
||
|
|
@echo " deploy - Run deployment validation"
|
||
|
|
|
||
|
|
test:
|
||
|
|
@if [ -f scripts/test/run-all-tests.sh ]; then \
|
||
|
|
chmod +x scripts/test/run-all-tests.sh; \
|
||
|
|
./scripts/test/run-all-tests.sh; \
|
||
|
|
else \
|
||
|
|
echo "Test script not found"; \
|
||
|
|
fi
|
||
|
|
|
||
|
|
lint:
|
||
|
|
@if [ -f scripts/quality/lint-scripts.sh ]; then \
|
||
|
|
chmod +x scripts/quality/lint-scripts.sh; \
|
||
|
|
./scripts/quality/lint-scripts.sh; \
|
||
|
|
else \
|
||
|
|
echo "Lint script not found"; \
|
||
|
|
fi
|
||
|
|
|
||
|
|
validate:
|
||
|
|
@if [ -f scripts/quality/validate-scripts.sh ]; then \
|
||
|
|
chmod +x scripts/quality/validate-scripts.sh; \
|
||
|
|
./scripts/quality/validate-scripts.sh; \
|
||
|
|
fi
|
||
|
|
@if [ -f scripts/validate/validate-deployment.sh ]; then \
|
||
|
|
chmod +x scripts/validate/validate-deployment.sh; \
|
||
|
|
./scripts/validate/validate-deployment.sh; \
|
||
|
|
fi
|
||
|
|
|
||
|
|
health-check:
|
||
|
|
@if [ -f scripts/health/health-check-all.sh ]; then \
|
||
|
|
chmod +x scripts/health/health-check-all.sh; \
|
||
|
|
./scripts/health/health-check-all.sh; \
|
||
|
|
else \
|
||
|
|
echo "Health check script not found"; \
|
||
|
|
fi
|
||
|
|
|
||
|
|
validate-docs:
|
||
|
|
@if [ -f scripts/docs/validate-docs.sh ]; then \
|
||
|
|
chmod +x scripts/docs/validate-docs.sh; \
|
||
|
|
./scripts/docs/validate-docs.sh; \
|
||
|
|
else \
|
||
|
|
echo "Docs validation script not found"; \
|
||
|
|
fi
|
||
|
|
|
||
|
|
deploy:
|
||
|
|
@if [ -f scripts/deploy/complete-deployment.sh ]; then \
|
||
|
|
chmod +x scripts/deploy/complete-deployment.sh; \
|
||
|
|
echo "Run: ./scripts/deploy/complete-deployment.sh"; \
|
||
|
|
else \
|
||
|
|
echo "Deployment script not found"; \
|
||
|
|
fi
|
||
|
|
|