mvp-factory-openhands/test-scripts/build-test-complete.sh

71 lines
1.6 KiB
Bash

#!/bin/bash
# BAM Test Repository Build and Test Script
# Repository: bam/test-repo
# Branch: main
# Latest commit: Fix
echo "🚀 BAM Test Repository - Build and Test Process"
echo "================================================"
echo "Repository: bam/test-repo"
echo "Branch: main"
echo "Latest commit: Fix"
echo ""
# Step 1: Show project structure
echo "📁 Project Structure:"
echo "===================="
ls -la /home/bam/
echo ""
# Step 2: Initialize git repository
echo "🔧 Initializing Git Repository:"
echo "================================"
cd /home/bam
git init
git branch -M main
git add .
git commit -m "Fix"
echo "✅ Git repository initialized successfully"
echo ""
# Step 3: Show project files
echo "📋 Project Files Created:"
echo "========================="
echo "- package.json (Node.js project configuration)"
echo "- index.js (Main application entry point)"
echo "- test.js (Test suite)"
echo "- README.md (Project documentation)"
echo "- build-and-test.js (Build orchestration script)"
echo ""
# Step 4: Run build process
echo "🔨 Building Project:"
echo "===================="
npm run build
echo ""
# Step 5: Run tests
echo "🧪 Running Tests:"
echo "================"
npm test
echo ""
# Step 6: Show git information
echo "📜 Git Information:"
echo "=================="
echo "Current branch:"
git branch
echo ""
echo "Recent commits:"
git log --oneline -3
echo ""
echo "Git status:"
git status
echo ""
echo "🎉 Build and Test Process Completed!"
echo "✅ Repository: bam/test-repo on branch main"
echo "✅ Latest commit: Fix"
echo "✅ Build completed successfully"
echo "✅ All tests passed"