summaryrefslogtreecommitdiff
path: root/test_docker.sh
blob: 59d6b7c355c32a2a3beb991bbe01e43b70cbdaeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

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

set -e

NAME=`basename $1`
TAG="python_magic/${NAME}:latest"
docker build -t $TAG -f $1 .
docker run $TAG