- 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.
52 lines
1.2 KiB
Bash
Executable File
52 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Validate all deployment and automation scripts
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
echo "=== ✅ Validating All Scripts ==="
|
|
|
|
ERRORS=0
|
|
|
|
# Check all deployment scripts are executable
|
|
echo "Checking deployment scripts..."
|
|
for script in scripts/deployment/*.sh; do
|
|
if [ -f "$script" ]; then
|
|
if [ ! -x "$script" ]; then
|
|
echo "⚠️ Making executable: $script"
|
|
chmod +x "$script"
|
|
fi
|
|
fi
|
|
done
|
|
|
|
# Check all automation scripts are executable
|
|
echo "Checking automation scripts..."
|
|
for script in scripts/automation/*.sh; do
|
|
if [ -f "$script" ]; then
|
|
if [ ! -x "$script" ]; then
|
|
echo "⚠️ Making executable: $script"
|
|
chmod +x "$script"
|
|
fi
|
|
fi
|
|
done
|
|
|
|
# Validate script syntax
|
|
echo "Validating script syntax..."
|
|
for script in scripts/**/*.sh; do
|
|
if [ -f "$script" ]; then
|
|
if ! bash -n "$script" 2>&1; then
|
|
echo "❌ Syntax error in: $script"
|
|
ERRORS=$((ERRORS + 1))
|
|
fi
|
|
fi
|
|
done
|
|
|
|
if [ $ERRORS -eq 0 ]; then
|
|
echo "✅ All scripts validated successfully"
|
|
exit 0
|
|
else
|
|
echo "❌ Found $ERRORS script errors"
|
|
exit 1
|
|
fi
|