Some checks are pending
Mark stable commit / test-unit (push) Waiting to run
Mark stable commit / test-integration (push) Waiting to run
Mark stable commit / test-env-virtual (push) Waiting to run
Mark stable commit / test-env-nix (push) Waiting to run
Mark stable commit / test-e2e (push) Waiting to run
Mark stable commit / test-virgin-user (push) Waiting to run
Mark stable commit / test-virgin-root (push) Waiting to run
Mark stable commit / lint-shell (push) Waiting to run
Mark stable commit / lint-python (push) Waiting to run
Mark stable commit / mark-stable (push) Blocked by required conditions
Standardize Docker/CI/test environments to mount pkgmgr at /opt/src/pkgmgr. This makes the layering explicit: pkgmgr is the lower-level foundation used by Infinito.Nexus. Infra-only change (Docker, CI, shell scripts). No runtime or Nix semantics changed. https://chatgpt.com/share/69427fe7-e288-800f-90a4-c1c3c11a8484
25 lines
801 B
Bash
Executable File
25 lines
801 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "============================================================"
|
|
echo ">>> Running INTEGRATION tests in ${PKGMGR_DISTRO} container"
|
|
echo "============================================================"
|
|
|
|
docker run --rm \
|
|
-v "$(pwd):/opt/src/pkgmgr" \
|
|
-v "pkgmgr_nix_store_${PKGMGR_DISTRO}:/nix" \
|
|
-v "pkgmgr_nix_cache_${PKGMGR_DISTRO}:/root/.cache/nix" \
|
|
--workdir /opt/src/pkgmgr \
|
|
-e REINSTALL_PKGMGR=1 \
|
|
-e TEST_PATTERN="${TEST_PATTERN}" \
|
|
"pkgmgr-${PKGMGR_DISTRO}" \
|
|
bash -lc '
|
|
set -e;
|
|
git config --global --add safe.directory /opt/src/pkgmgr || true;
|
|
nix develop .#default --no-write-lock-file -c \
|
|
python3 -m unittest discover \
|
|
-s tests/integration \
|
|
-t /opt/src/pkgmgr \
|
|
-p "$TEST_PATTERN";
|
|
'
|