mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
사소한 리팩토링
This commit is contained in:
1 parent
d986493431
commit
48bf9c1165
62 files changed
+31
-39
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Runs the E2E tests in Docker. Arguments are passed to Playwright (e.g. `-g "cache"`).
|
||||
# The containers are isolated from the development database and removed afterwards.
|
||||
set -u
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
export E2E_UID="$(id -u)" E2E_GID="$(id -g)" E2E_ARGS="$*"
|
||||
E2E_DATA_DIR="$(mktemp -d)"
|
||||
export E2E_DATA_DIR
|
||||
|
||||
compose=(docker compose -f docker-compose.yaml)
|
||||
"${compose[@]}" up --build --attach playwright --abort-on-container-exit --exit-code-from playwright
|
||||
code=$?
|
||||
|
||||
"${compose[@]}" down --volumes --remove-orphans
|
||||
rm -rf "$E2E_DATA_DIR"
|
||||
exit $code
|
||||
Reference in new issue
Block a user