From 7f7542fcbc192fef6e4939f4eb748e941a720b2c Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Mon, 4 Oct 2021 14:46:37 -0700 Subject: Support os.PathLike types See https://github.com/ahupp/python-magic/pull/251 --- test_docker.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'test_docker.sh') diff --git a/test_docker.sh b/test_docker.sh index 59d6b7c..ad2bc5d 100755 --- a/test_docker.sh +++ b/test_docker.sh @@ -5,8 +5,14 @@ set -e -NAME=`basename $1` -TAG="python_magic/${NAME}:latest" -docker build -t $TAG -f $1 . -docker run $TAG +DEFAULT_TARGETS="xenial bionic focal centos7 centos8 archlinux alpine" +TARGETS=${1:-${DEFAULT_TARGETS}} + +HERE=`dirname $0` + +for i in $TARGETS; do + TAG="python_magic/${i}:latest" + docker build -t $TAG -f ${HERE}/test/docker/$i . + docker run $TAG +done -- cgit v1.2.1