Files
computer-playbook/scripts/tests/development.sh
T
2026-03-24 20:44:48 +01:00

26 lines
638 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
APP="${APP:-web-app-matomo}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
# pkgmgr images may reset the working directory before invoking this script.
cd "${REPO_ROOT}"
bash "${REPO_ROOT}/scripts/install/package.sh"
make install
make dev-environment-bootstrap
make up
make test
make test-local-dedicated APP="${APP}"
make trust-ca
MATOMO_URL="https://matomo.infinito.example"
echo "Checking matomo URL: ${MATOMO_URL}"
curl -sS -o /dev/null -w '%{http_code}\n' "${MATOMO_URL}" | grep -qx '200'
make down
make dev-environment-teardown