Some checks failed
CICD / Build and Publish CICD Base Image (push) Successful in 23s
CICD / Build and Push CICD Image (push) Failing after 13m16s
CICD / Backend Tests (push) Has been cancelled
CICD / Pre-commit Checks (push) Has been cancelled
CICD / Frontend Tests (push) Has been cancelled
CICD / Backend Doctests (push) Has been cancelled
CICD / Build and Publish Runtime Images (push) Has been cancelled
CICD / Runtime Black-Box Integration Tests (push) Has been cancelled
CICD / End-to-End Tests (push) Has been cancelled
24 lines
937 B
Bash
24 lines
937 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
COMPOSE_FILE="${ROOT_DIR}/compose.ci.integration.yml"
|
|
PROJECT_NAME="${COMPOSE_PROJECT_NAME:-plex-int-local}"
|
|
|
|
export CICD_IMAGE="${CICD_IMAGE:-cicd:local}"
|
|
export DEPLOYABLE_BACKEND_IMAGE="${DEPLOYABLE_BACKEND_IMAGE:-deployable-backend:local}"
|
|
export DB_PASSWORD="${DB_PASSWORD:-plex_password}"
|
|
export DB_URL="${DB_URL:-postgresql://plex_user:${DB_PASSWORD}@database:5432/plex_playlist}"
|
|
|
|
cleanup() {
|
|
docker compose -p "${PROJECT_NAME}" -f "${COMPOSE_FILE}" down -v --remove-orphans >/dev/null 2>&1 || true
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
echo "Running integration tests against runtime backend image via compose"
|
|
echo "CICD_IMAGE=${CICD_IMAGE}"
|
|
echo "DEPLOYABLE_BACKEND_IMAGE=${DEPLOYABLE_BACKEND_IMAGE}"
|
|
|
|
docker compose -p "${PROJECT_NAME}" -f "${COMPOSE_FILE}" up --abort-on-container-exit --exit-code-from integration-tests integration-tests
|