19 lines
255 B
Bash
19 lines
255 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
|
||
|
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||
|
|
||
|
TESTS=${@:-.}
|
||
|
|
||
|
function execute() {
|
||
|
>&2 echo "++ $@"
|
||
|
eval "$@"
|
||
|
}
|
||
|
|
||
|
execute time docker-compose build
|
||
|
|
||
|
execute docker-compose up -d
|
||
|
|
||
|
# Run the tests.
|
||
|
execute time bats -p $TESTS
|