github.com/mika/distribution@v2.2.2-0.20160108133430-a75790e3d8e0+incompatible/contrib/docker-integration/test_runner.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 5 6 TESTS=${@:-.} 7 8 function execute() { 9 >&2 echo "++ $@" 10 eval "$@" 11 } 12 13 execute time docker-compose build 14 15 execute docker-compose up -d 16 17 # Run the tests. 18 execute time bats -p $TESTS