diff options
author | Adam Hupp <adam@hupp.org> | 2020-09-07 17:36:17 -0700 |
---|---|---|
committer | Adam Hupp <adam@hupp.org> | 2020-09-07 17:36:17 -0700 |
commit | 83864c858cc82d7e0f219c07fd7caa826dc47920 (patch) | |
tree | 1e10af947e4d8c8a3af6a5d27da8e2b9eeb36edb | |
parent | 1b6cede2550784251296496ad65ece8266e56250 (diff) | |
download | python-magic-83864c858cc82d7e0f219c07fd7caa826dc47920.tar.gz |
add docker tests for archlinux
-rwxr-xr-x | test/Dockerfile_archlinux | 5 | ||||
-rwxr-xr-x | test_docker.sh | 4 |
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" |