summaryrefslogtreecommitdiff
path: root/test_docker.sh
blob: ad2bc5d508901cc4e1267ac5b00412d548a7c649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

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

set -e

DEFAULT_TARGETS="xenial bionic focal centos7 centos8 archlinux alpine"

TARGETS=${1:-${DEFAULT_TARGETS}}

HERE=`dirname $0`

for i in $TARGETS; do
    TAG="python_magic/${i}:latest"
    docker build -t $TAG -f ${HERE}/test/docker/$i .
    docker run $TAG
done