Codebase list python-magic-ahupp / ad8c46cb-97f4-478e-94af-2b8265cc911f/upstream test_docker.sh
ad8c46cb-97f4-478e-94af-2b8265cc911f/upstream

Tree @ad8c46cb-97f4-478e-94af-2b8265cc911f/upstream (Download .tar.gz)

test_docker.sh @ad8c46cb-97f4-478e-94af-2b8265cc911f/upstreamraw · history · blame

#!/bin/bash

# Test with various versions of ubuntu.  This more or less re-creates the
# Travis CI test environment

set -e

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"
TestInContainer "centos7"
TestInContainer "centos8"
TestInContainer "archlinux"