diff options
| author | Adam Hupp <adam@hupp.org> | 2020-03-31 10:06:32 -0700 |
|---|---|---|
| committer | Adam Hupp <adam@hupp.org> | 2020-03-31 10:06:32 -0700 |
| commit | fd058e28873eafe6626f4b819679098f9def217d (patch) | |
| tree | 99246fd58655b695f50d513a79dee45247ae5d85 /test_docker.sh | |
| parent | cb754dd2cb2a68b59644a95b860629156606363d (diff) | |
| download | python-magic-fd058e28873eafe6626f4b819679098f9def217d.tar.gz | |
Add script to drive linux docker tests now that it supports WSL2, and fix focal dockerfile
Diffstat (limited to 'test_docker.sh')
| -rwxr-xr-x | test_docker.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test_docker.sh b/test_docker.sh new file mode 100755 index 0000000..39a2f12 --- /dev/null +++ b/test_docker.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Test with various versions of ubuntu. This more or less re-creates the +# Travis CI test environment + +function TestInContainer { + local name="$1" + local 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" + |
