From 9b3f427c39b5cb0ba4be1f1d1ba20fb12ead3ac0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 3 Aug 2026 17:45:53 +0000 Subject: [PATCH] Add tilt.dev support (install.sh, tests, README, CI) Co-authored-by: bobbravo2 <348865+bobbravo2@users.noreply.github.com> --- .github/workflows/ci.yml | 1 + README.md | 3 ++- install.sh | 8 ++++++++ test/install.bats | 25 ++++++++++++++++++++++++- 4 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e13f702..fb6c438 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,3 +60,4 @@ jobs: cloc --version act --version ollama --version + tilt version diff --git a/README.md b/README.md index eb1b200..22220a4 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,8 @@ The following tools are installed (or skipped if already present): | [Node.js + npm](https://nodejs.org) | `brew install node` | | [`cloc`](https://github.com/AlDanial/cloc) | `brew install cloc` | | [`act`](https://github.com/nektos/act) | `brew install act` | -| [Ollama](https://ollama.com) | `curl -fsSL https://ollama.com/install.sh | sh` | +| [Ollama](https://ollama.com) | `brew install ollama` | +| [Tilt](https://tilt.dev) | `brew install tilt` | The script is **idempotent** — re-running it is safe and will skip anything already installed. diff --git a/install.sh b/install.sh index d9ca0d0..d63b2a3 100755 --- a/install.sh +++ b/install.sh @@ -125,6 +125,14 @@ else echo "🦙 Ollama is already running on the Severed Floor." fi +# 15. Tilt — local dev environment orchestrator +if ! command -v tilt &>/dev/null; then + echo "🔦 Tilt not found. The dev environment needs orchestrating. Installing..." + brew install tilt +else + echo "🔦 Tilt is already illuminating the Severed Floor." +fi + echo "" echo "✅ Macrodata Refinement environment initialised." echo " The work is mysterious and important. Praise Kier. 🫱" diff --git a/test/install.bats b/test/install.bats index 949de65..dfad3e0 100644 --- a/test/install.bats +++ b/test/install.bats @@ -391,6 +391,28 @@ EOF [[ "$output" == *"Ollama is already running"* ]] } +# --------------------------------------------------------------------------- +# Tilt section +# --------------------------------------------------------------------------- + +@test "installs Tilt when tilt is not on PATH" { + run env PATH="$MOCK_BIN" /bin/bash "$SCRIPT" + [ "$status" -eq 0 ] + [[ "$output" == *"Tilt not found"* ]] +} + +@test "skips Tilt when tilt is already installed" { + cat > "$MOCK_BIN/tilt" <<'EOF' +#!/bin/bash +exit 0 +EOF + chmod +x "$MOCK_BIN/tilt" + + run bash "$SCRIPT" + [ "$status" -eq 0 ] + [[ "$output" == *"Tilt is already illuminating"* ]] +} + # --------------------------------------------------------------------------- # End-to-end: all tools already present # --------------------------------------------------------------------------- @@ -403,7 +425,7 @@ EOF @test "exits successfully when all tools are already installed" { # Stubs for every command-based tool - for tool in gcloud oc gh uvx python3 gws node cloc act ollama; do + for tool in gcloud oc gh uvx python3 gws node cloc act ollama tilt; do cat > "$MOCK_BIN/$tool" <<'EOF' #!/bin/bash exit 0 @@ -434,4 +456,5 @@ EOF [[ "$output" == *"cloc is already tallying lines"* ]] [[ "$output" == *"act is already running scenes"* ]] [[ "$output" == *"Ollama is already running"* ]] + [[ "$output" == *"Tilt is already illuminating"* ]] }