2015-02-23 12:01:37 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# See CONTRIBUTING.md for usage.
|
|
|
|
|
2014-09-30 22:48:01 +02:00
|
|
|
set -ex
|
2015-02-23 12:01:37 +01:00
|
|
|
|
2015-02-25 14:52:55 +01:00
|
|
|
TAG="docker-compose:$(git rev-parse --short HEAD)"
|
2015-02-23 12:01:37 +01:00
|
|
|
|
2015-05-28 20:02:19 +02:00
|
|
|
rm -rf coverage-html
|
|
|
|
|
2015-02-25 14:52:55 +01:00
|
|
|
docker build -t "$TAG" .
|
|
|
|
docker run \
|
|
|
|
--rm \
|
|
|
|
--volume="/var/run/docker.sock:/var/run/docker.sock" \
|
|
|
|
-e DOCKER_VERSIONS \
|
|
|
|
-e "TAG=$TAG" \
|
2015-06-12 00:58:07 +02:00
|
|
|
-e "affinity:image==$TAG" \
|
2015-05-28 20:02:19 +02:00
|
|
|
-e "COVERAGE_DIR=$(pwd)/coverage-html" \
|
2015-02-25 14:52:55 +01:00
|
|
|
--entrypoint="script/test-versions" \
|
|
|
|
"$TAG" \
|
|
|
|
"$@"
|