kopia lustrzana https://gitlab.com/gerbolyze/gerbonara
local tests: add --parallel arg
rodzic
acf2747e86
commit
6752dab125
|
@ -3,6 +3,10 @@
|
|||
set -e
|
||||
git clone /data/git git
|
||||
cd git
|
||||
#python3 -m pytest --workers auto
|
||||
python3 -m pytest -x
|
||||
|
||||
if [ $# -ge 1 -a "$1" = "--parallel" ]; then
|
||||
python3 -m pytest --workers auto
|
||||
else
|
||||
python3 -m pytest -x
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
CONTAINER_ARGS="$@"
|
||||
|
||||
rm -rf podman/testdata/git
|
||||
git clone --depth 1 . podman/testdata/git
|
||||
|
@ -9,6 +10,6 @@ for distro in arch ubuntu
|
|||
do
|
||||
podman build -t gerbonara-$distro-testenv -f podman/$distro-testenv
|
||||
mkdir -p /tmp/gerbonara-test-out
|
||||
podman run --mount type=bind,src=podman/testdata,dst=/data,ro --mount type=bind,src=/tmp/gerbonara-test-out,dst=/out gerbonara-$distro-testenv /data/testscript.sh
|
||||
podman run --mount type=bind,src=podman/testdata,dst=/data,ro --mount type=bind,src=/tmp/gerbonara-test-out,dst=/out gerbonara-$distro-testenv /data/testscript.sh $CONTAINER_ARGS
|
||||
done
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue