#!/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 ""