quality clean.prefix-groups: env-nix.sh and env-virtual.sh move to scripts/test/container/env/nix.sh and env/virtual.sh; their only callers, scripts/test/test-env-nix.sh and test-env-virtual.sh, are updated. clean.clones: the shared git safe.directory block of e2e.sh and env-nix.sh is one script, scripts/test/container/safe-directory.sh, called at the same spot. clean.comment: parameter lines use the form # Param: NAME ($n) - text. coding.shell-lint SC1091: quality runs shellcheck without -x, so the source directives are shellcheck source=/dev/null like the sibling scripts; the sourcing logic is unchanged. | 🌿 Branch | 📊 Diff stat | 🎯 Fix | 💥 Break | 💸 Tokens | ⏱️ Velocity | 🛡️ Security | 🏆 Score | Gate | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | chore/test-scripts-no-inline | 7 files +17/-17 | 92 % | 3 % | – | – | 100 % | 89 | ✅ 90/5, tokens and velocity <= 100, security 100 % | Evidence: quality check --staged 0 findings, shellcheck --norc clean on all 7 scripts, MEDUSA 100 %, critical 0. The container jobs of PR CI are the proof. Hub review 42b3a76554491026. Refs https://github.com/kevinveenbirkenbach/package-manager/pull/20 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
376 B
Bash
Executable File
17 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "[test-env-virtual] Installing pkgmgr (distro package)..."
|
|
make install
|
|
|
|
echo "[test-env-virtual] Setting up Python venv..."
|
|
make setup-venv
|
|
|
|
echo "[test-env-virtual] Activating venv..."
|
|
# shellcheck source=/dev/null
|
|
. "$HOME/.venvs/pkgmgr/bin/activate"
|
|
|
|
echo "[test-env-virtual] Using pkgmgr from:"
|
|
command -v pkgmgr
|
|
pkgmgr --help
|