mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-11 02:51:10 +00:00
* feat: art-first library cards with a display menu for size, title and storage * build: use native arm64 docker on Apple Silicon and add a fast deploy loop * fix: address review feedback on library cards and local build scripts
13 lines
526 B
Bash
Executable File
13 lines
526 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
repo_root=$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
|
|
cd "$repo_root"
|
|
if [[ $(uname -s) == Linux ]]; then
|
|
exec python3 -m unittest discover -s tools/tests "$@"
|
|
fi
|
|
. "${repo_root}/tools/docker_platform.sh"
|
|
image=${DROIDDECK_BUILD_IMAGE}
|
|
python3 tools/docker_preflight.py "$image"
|
|
exec docker run --rm --platform "${DROIDDECK_DOCKER_PLATFORM}" --user "$(id -u):$(id -g)" \
|
|
-v "$repo_root:/src:ro" -w /src "$image" python3 -m unittest discover -s tools/tests "$@"
|