Add test coverage support

Prints out results on console and puts HTML report in `coverage-html`.

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman 2015-05-28 19:02:19 +01:00
commit aab6df6ba4
5 changed files with 8 additions and 1 deletions

View file

@ -5,6 +5,8 @@ set -ex
TAG="docker-compose:$(git rev-parse --short HEAD)"
rm -rf coverage-html
docker build -t "$TAG" .
docker run \
--rm \
@ -12,6 +14,7 @@ docker run \
-e DOCKER_VERSIONS \
-e "TAG=$TAG" \
-e "affinity:image==$TAG" \
-e "COVERAGE_DIR=$(pwd)/coverage-html" \
--entrypoint="script/test-versions" \
"$TAG" \
"$@"