#!/bin/bash # See CONTRIBUTING.md for usage. set -ex TAG="docker-compose:$(git rev-parse --short HEAD)" rm -rf coverage-html docker build -t "$TAG" . docker run \ --rm \ --volume="/var/run/docker.sock:/var/run/docker.sock" \ -e DOCKER_VERSIONS \ -e "TAG=$TAG" \ -e "affinity:image==$TAG" \ -e "COVERAGE_DIR=$(pwd)/coverage-html" \ --entrypoint="script/test-versions" \ "$TAG" \ "$@"