diff options
| author | Adam Hupp <adam@hupp.org> | 2021-10-04 14:46:37 -0700 |
|---|---|---|
| committer | Adam Hupp <adam@hupp.org> | 2021-10-04 16:04:28 -0700 |
| commit | 7f7542fcbc192fef6e4939f4eb748e941a720b2c (patch) | |
| tree | 8a1bebe0cfa08dd0148aa5120f9768cdfcfe50a1 /test_docker.sh | |
| parent | 73bcc7482bf3e6d1f6a74a91bf9689b289a88910 (diff) | |
| download | python-magic-7f7542fcbc192fef6e4939f4eb748e941a720b2c.tar.gz | |
Support os.PathLike types
See https://github.com/ahupp/python-magic/pull/251
Diffstat (limited to 'test_docker.sh')
| -rwxr-xr-x | test_docker.sh | 14 |
1 files changed, 10 insertions, 4 deletions
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 |
