test_docker.sh 385 B

123456789101112131415161718
  1. #!/bin/bash
  2. # Test with various versions of ubuntu. This more or less re-creates the
  3. # Travis CI test environment
  4. set -e
  5. DEFAULT_TARGETS="xenial bionic focal centos7 centos8 archlinux alpine"
  6. TARGETS=${1:-${DEFAULT_TARGETS}}
  7. HERE=`dirname $0`
  8. for i in $TARGETS; do
  9. TAG="python_magic/${i}:latest"
  10. docker build -t $TAG -f ${HERE}/test/docker/$i .
  11. docker run $TAG
  12. done