Kick everything off from a single container
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
74440b2f92
commit
42e6296b0e
6 changed files with 145 additions and 107 deletions
23
script/test
23
script/test
|
|
@ -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" \
|
||||
"$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue