This package contains a set of automation scripts designed to enhance the development workflow, testing, and deployment processes for the BlockGuardian repository. These scripts address various repetitive and manual tasks identified during a comprehensive review of the repository.
-
Unified Testing Script (
run_unified_tests.sh): Automates testing across all components of the BlockGuardian project, generating consolidated test reports. -
Health Check Script (
health_check.sh): Monitors the health of all running BlockGuardian components and provides a consolidated status report. -
Log Aggregation Script (
log_aggregator.sh): Collects and aggregates logs from all BlockGuardian components into a centralized location for easier monitoring and troubleshooting. -
Deployment Automation Script (
deploy_automation.sh): Automates the deployment process for BlockGuardian components, handling building, testing, and deploying to various environments.
- Extract the contents of this zip file to the root directory of your BlockGuardian repository.
- Make the scripts executable:
chmod +x scripts/*.sh
Run tests across all components and generate a consolidated report:
./scripts/run_unified_tests.shThe test results will be saved in the test-results directory.
Check the health of all running BlockGuardian components:
./scripts/health_check.shThe health check results will be saved in the health-checks directory.
Collect and aggregate logs from all components:
./scripts/log_aggregator.shThe aggregated logs will be saved in the logs/aggregated directory.
Deploy BlockGuardian components to various environments:
./scripts/deploy_automation.sh --environment [development|staging|production] --component [all|backend|web-frontend|mobile-frontend|blockchain]Options:
-e, --environment: Specify deployment environment (development, staging, production)-c, --component: Deploy specific component (backend, web-frontend, mobile-frontend, blockchain)-s, --skip-tests: Skip running tests before deployment-h, --help: Show help message
Each script is designed to be modular and easily customizable. You can modify the scripts to fit your specific requirements by editing the relevant sections.
For more detailed information about each script, please refer to the comments within the script files themselves or the validation report included in this package.
These scripts are provided under the same license as the BlockGuardian repository.