diff options
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" + |
