summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/Dockerfile_archlinux5
-rwxr-xr-xtest_docker.sh4
2 files changed, 7 insertions, 2 deletions
diff --git a/test/Dockerfile_archlinux b/test/Dockerfile_archlinux
new file mode 100755
index 0000000..677add4
--- /dev/null
+++ b/test/Dockerfile_archlinux
@@ -0,0 +1,5 @@
+FROM archlinux:20200505
+RUN yes | pacman -Syyu --overwrite '*'
+RUN yes | pacman -S python python2 file which
+COPY . /python-magic
+CMD cd /python-magic/test && python3 ./run.py
diff --git a/test_docker.sh b/test_docker.sh
index 69220ed..7858f33 100755
--- a/test_docker.sh
+++ b/test_docker.sh
@@ -3,7 +3,7 @@
# Test with various versions of ubuntu. This more or less re-creates the
# Travis CI test environment
-set -e
+set -e
function TestInContainer {
local name="$1"
@@ -17,5 +17,5 @@ TestInContainer "bionic"
TestInContainer "focal"
TestInContainer "centos7"
TestInContainer "centos8"
-
+TestInContainer "archlinux"