diff options
-rw-r--r-- | test.ps1 | 11 | ||||
-rwxr-xr-x | test/Dockerfile_alpine | 4 | ||||
-rwxr-xr-x | test_docker.sh | 2 |
3 files changed, 5 insertions, 12 deletions
diff --git a/test.ps1 b/test.ps1 deleted file mode 100644 index 14a7070..0000000 --- a/test.ps1 +++ /dev/null @@ -1,11 +0,0 @@ - - -function TestInContainer($name) { - $TAG="python_magic/${name}:latest" - docker build -t $TAG -f "test/Dockerfile_${name}" . - docker run "python_magic/${name}:latest" -} - -TestInContainer "xenial" -TestInContainer "bionic" -TestInContainer "focal"
\ No newline at end of file diff --git a/test/Dockerfile_alpine b/test/Dockerfile_alpine new file mode 100755 index 0000000..f8ec79e --- /dev/null +++ b/test/Dockerfile_alpine @@ -0,0 +1,4 @@ +FROM alpine:latest +RUN apk add python3 python2 libmagic +COPY . /python-magic +CMD cd /python-magic/test && python3 ./run.py diff --git a/test_docker.sh b/test_docker.sh index 7858f33..57d5328 100755 --- a/test_docker.sh +++ b/test_docker.sh @@ -18,4 +18,4 @@ TestInContainer "focal" TestInContainer "centos7" TestInContainer "centos8" TestInContainer "archlinux" - +TestInContainer "alpine" |