Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .cursor/cloud-install.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/usr/bin/env bash
# Cloud agent Build: prepare Demonator15 (idempotent — safe on every Build).
# Cloud agent install for Demonator15. Idempotent — safe on every build.
# Prepares the WPILib Java 17 toolchain and compiles robot code.
# Unit tests and the full jar stay verification steps (`./gradlew test`, `./gradlew build`).
set -euo pipefail
cd "$(dirname "$0")/.."

if [[ ! -x /usr/lib/jvm/java-17-openjdk-amd64/bin/java ]]; then
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-17-jdk
fi

export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
export PATH="${JAVA_HOME}/bin:${PATH}"

chmod +x gradlew
# Unit tests use Java 17 via Gradle toolchain (build.gradle). Full roboRIO cross-build runs in GitHub Actions CI.
./gradlew test --no-daemon
./gradlew classes --no-daemon
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

```bash
chmod +x gradlew
./gradlew test # local / Cursor Cloud install script
./gradlew test # local verification
./gradlew build # full compile + tests (matches GitHub Actions CI)
```

Cloud environment config: `.cursor/environment.json` (runs `cloud-install.sh` → `./gradlew test`).
Cloud install (`.cursor/environment.json` → `cloud-install.sh`) installs OpenJDK 17 at `/usr/lib/jvm/java-17-openjdk-amd64` and compiles with `./gradlew classes`. There is no boot service; this is a Gradle robot project. Verify with `./gradlew test` and `./gradlew build`.

## Architecture

Expand Down