Files
FTC-Project-Gen/linux/templates/build.sh
2026-01-24 12:39:32 -06:00

41 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Quick build/check script for FTC project
set -e
CLEAN=false
while [[ $# -gt 0 ]]; do
case $1 in
--clean|-c)
CLEAN=true
shift
;;
*)
echo "Unknown option: $1"
exit 1
;;
esac
done
if [ "$CLEAN" = true ]; then
echo "Cleaning build..."
./gradlew clean
fi
echo "Building and testing..."
./gradlew build test
echo ""
echo "════════════════════════════════════════════════════════════════"
echo " ✓ Build Successful!"
echo "════════════════════════════════════════════════════════════════"
echo ""
echo "Your code compiles and all tests pass."
echo "Ready to deploy to robot when you are."
echo ""
echo "Next steps:"
echo " 1. Uncomment FTC imports in hardware and opmodes"
echo " 2. Run: ./deploy-to-robot.sh"
echo ""