Files
javis_bot/.githooks/pre-push
javis-bot c4abf63f38
Some checks failed
Release / semantic-release (push) Successful in 59s
tests / Unit tests (Linux, Python 3.11) (push) Successful in 13m45s
Release / build-linux (push) Failing after 7m47s
Release / build-windows (push) Has been cancelled
Release / build-macos (arm64, macos-latest) (push) Has been cancelled
Release / build-macos (x64, macos-15-intel) (push) Has been cancelled
Release / release-main (push) Has been cancelled
Release / release-develop (push) Has been cancelled
Add Discord-native hybrid front-end for Jarvis (bot + bridge)
Transform isair/jarvis into a Discord-controlled voice assistant running on
the Ubuntu VNC desktop, keeping the mature ~39k-line Python brain intact.

- bot/ (Node + bun, discord.js): /자비스 slash commands (ephemeral),
  voice channel join + voice receive/playback, pluggable VNC screen broadcast
  (selfbot live / noVNC / screenshot)
- bridge/ (Python, Flask): wraps jarvis STT + run_reply_engine + Piper TTS
  behind a thin localhost HTTP API
- .env.example, scripts/ (start_bridge/start_bot/dev), README rewrite,
  docs/language-comparison.md and docs/vnc-xfce-setup.md

Language decision: hybrid (Python brain + Node/bun Discord layer) because
Discord blocks bot video; native screen broadcast only works via a Node
selfbot library.
2026-06-09 14:51:05 +09:00

33 lines
695 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [ "${SKIP_TESTS:-}" = "1" ]; then
echo "[pre-push] SKIP_TESTS=1 -> skipping unit tests"
exit 0
fi
echo "[pre-push] Running all tests (unit, integration, and e2e)"
# Prefer python -m pytest to avoid PATH issues
if ! command -v python >/dev/null 2>&1; then
echo "[pre-push] python not found on PATH; skipping tests"
exit 0
fi
if ! python -c "import pytest" >/dev/null 2>&1; then
echo "[pre-push] pytest not installed; skipping tests"
exit 0
fi
# Run all tests for comprehensive validation before push
if ! python -m pytest -q; then
echo "[pre-push] Tests failed. Aborting push."
exit 1
fi
echo "[pre-push] All tests passed"
exit 0