Files
smom-dbis-138/scripts/automation/run-all-automated-tasks.sh
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

71 lines
1.9 KiB
Bash
Executable File

#!/usr/bin/env bash
# Master script to run all automated tasks in parallel
set -e
cd "$(dirname "$0")/../.."
echo "=== 🚀 Running All Automated Tasks ==="
echo ""
# Create logs directory
mkdir -p logs
# Array to store background job PIDs
declare -a pids=()
# Function to run task and track PID
run_parallel_task() {
local task_name="$1"
local task_command="$2"
local log_file="logs/${task_name}.log"
echo "Starting: $task_name"
(
eval "$task_command" > "$log_file" 2>&1
if [ $? -eq 0 ]; then
echo "$task_name: SUCCESS"
else
echo "$task_name: FAILED (check $log_file)"
fi
) &
pids+=($!)
echo " PID: $!"
}
# Task 1: Validate all scripts
run_parallel_task "validate-scripts" "./scripts/automation/validate-all-scripts.sh"
# Task 2: Scope review
run_parallel_task "scope-review" "./scripts/automation/scope-review.sh"
# Task 3: Compile Foundry contracts
run_parallel_task "compile-foundry" "forge build --force 2>&1 | grep -v 'ccip-integration' || true"
# Task 4: Run Foundry tests
run_parallel_task "test-foundry" "forge test --no-match-path 'test/ccip-integration/*' 2>&1 || true"
# Task 5: Check environment configuration
run_parallel_task "check-env" "./scripts/deployment/verify-env.sh 2>&1 || echo 'Env check skipped'"
# Task 6: Validate deployment scripts syntax
run_parallel_task "validate-deployment-scripts" "find scripts/deployment -name '*.sh' -exec bash -n {} \; 2>&1 || true"
# Task 7: Check contract compilation status
run_parallel_task "check-contracts" "find contracts -name '*.sol' -type f | wc -l"
# Task 8: Count documentation files
run_parallel_task "count-docs" "find docs -name '*.md' -type f | wc -l"
# Wait for all tasks
echo ""
echo "Waiting for all tasks to complete..."
for pid in "${pids[@]}"; do
wait $pid
done
echo ""
echo "=== ✅ All Automated Tasks Complete ==="
echo "Check logs/ directory for detailed output"