Files
sh-agents 9b640d721e Merge branch 'master' into ep/feed
# Conflicts:
#	apps/simplex-support-bot-light/src/support_bot_light/__main__.py
#	scripts/ci/packages_release.py
2026-11-12 14:18:03 +00:00

60 lines
2.0 KiB
Bash
Executable File

#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/../.."
case "${1:-}" in
badge-web)
(cd apps/simplex-badge-service/web && npm ci && npm test)
;;
ci-scripts)
python3 scripts/ci/test_packages_release.py
;;
website)
(cd website && npm test)
;;
mcp)
(cd packages/simplex-chat-client/types/typescript && npm install --no-audit --no-fund && npx tsc)
(cd packages/simplex-chat-nodejs && npm install --ignore-scripts --no-save --no-audit --no-fund ../simplex-chat-client/types/typescript && npx tsc && cp src/simplex.* dist)
cd packages/simplex-chat-mcp
npm ci --no-audit --no-fund
npm install --no-save --no-audit --no-fund ../simplex-chat-nodejs ../simplex-chat-client/types/typescript
npx tsc
npx tsc -p test/tsconfig.json --noEmit
npm test
npm run test:e2e
;;
support-bot)
(cd packages/simplex-chat-client/types/typescript && npm install --no-audit --no-fund && npx tsc)
(cd packages/simplex-chat-nodejs && npm install --ignore-scripts --no-save --no-audit --no-fund ../simplex-chat-client/types/typescript && npx tsc && cp src/simplex.* dist)
cd apps/simplex-support-bot
npm ci --no-audit --no-fund
npm install --no-save --no-audit --no-fund ../../packages/simplex-chat-nodejs ../../packages/simplex-chat-client/types/typescript
npm run build
npm test
;;
support-bot-light)
cd apps/simplex-support-bot-light
python3 -m venv .venv
.venv/bin/pip install -e ../../packages/simplex-chat-python -e '.[dev]'
.venv/bin/ruff check
.venv/bin/ruff format --check src tests
.venv/bin/pyright
.venv/bin/pytest tests
;;
support-bot-light)
cd apps/simplex-support-bot-light
python3 -m venv .venv
.venv/bin/pip install -e ../../packages/simplex-chat-python -e '.[dev]'
.venv/bin/ruff check
.venv/bin/ruff format --check src tests
.venv/bin/pyright
.venv/bin/pytest tests
;;
*)
echo "usage: $0 badge-web | ci-scripts | website | mcp | support-bot | support-bot-light" >&2
exit 1
;;
esac