backend_and_cms/scripts/test.sh

12 lines
311 B
Bash
Raw Normal View History

2024-09-17 12:11:39 +08:00
#! /usr/bin/env sh
# Exit in case of error
set -e
set -x
docker compose build
docker compose down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
docker compose up -d
docker compose exec -T backend bash /app/tests-start.sh "$@"
docker compose down -v --remove-orphans