verify.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. # XMake Plugin Verification Script
  3. # This script runs the plugin verification task
  4. set -e
  5. echo "🔍 Verifying XMake Plugin..."
  6. echo ""
  7. # Set JAVA_HOME if not set
  8. if [ -z "$JAVA_HOME" ]; then
  9. # Try to find JDK
  10. if [ -d "$HOME/files/jdk-17.0.8.jdk/Contents/Home" ]; then
  11. export JAVA_HOME="$HOME/files/jdk-17.0.8.jdk/Contents/Home"
  12. echo "📦 Using JAVA_HOME: $JAVA_HOME"
  13. else
  14. echo "⚠️ JAVA_HOME not set, using system default"
  15. fi
  16. fi
  17. # Run the verification task
  18. echo "🚀 Running plugin verification..."
  19. ./gradlew :verifyPlugin
  20. # Check the result
  21. if [ $? -eq 0 ]; then
  22. echo ""
  23. echo "✅ Plugin verification completed successfully!"
  24. echo ""
  25. echo "📋 Verification results are available in:"
  26. echo " - build/reports/plugin-verifier/"
  27. echo ""
  28. echo "🔍 Check the reports for any compatibility issues or warnings."
  29. else
  30. echo ""
  31. echo "❌ Plugin verification failed!"
  32. echo ""
  33. echo "🔍 Please check the error messages above for details."
  34. exit 1
  35. fi