Kick everything off from a single container

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-02-25 13:52:55 +00:00
commit 42e6296b0e
6 changed files with 145 additions and 107 deletions

View file

@ -3,17 +3,14 @@
set -ex
docker build -t docker-compose .
docker run --privileged --rm --entrypoint flake8 docker-compose compose
TAG="docker-compose:$(git rev-parse --short HEAD)"
docker build -f Dockerfile.tests -t docker-compose-tests .
if [ "$DOCKER_VERSIONS" == "" ]; then
DOCKER_VERSIONS="1.5.0"
elif [ "$DOCKER_VERSIONS" == "all" ]; then
DOCKER_VERSIONS="1.3.3 1.4.1 1.5.0"
fi
for version in $DOCKER_VERSIONS; do
docker run --privileged --rm -e "DOCKER_VERSION=$version" docker-compose-tests nosetests "$@"
done
docker build -t "$TAG" .
docker run \
--rm \
--volume="/var/run/docker.sock:/var/run/docker.sock" \
-e DOCKER_VERSIONS \
-e "TAG=$TAG" \
--entrypoint="script/test-versions" \
"$TAG" \
"$@"