mirror of https://github.com/docker/docs.git
integration runner: run tests on a fresh binary.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
2600c8823b
commit
c236e2f11d
|
@ -14,6 +14,12 @@ function execute() {
|
|||
# Tests to run. Defaults to all.
|
||||
TESTS=${@:-.}
|
||||
|
||||
# Generate a temporary binary for the tests.
|
||||
export SWARM_BINARY=`mktemp`
|
||||
|
||||
# Build Swarm.
|
||||
execute go build -o "$SWARM_BINARY" ../..
|
||||
|
||||
# Start the docker engine.
|
||||
execute docker --daemon --log-level=panic \
|
||||
--storage-driver="$STORAGE_DRIVER" --exec-driver="$EXEC_DRIVER" &
|
||||
|
|
Loading…
Reference in New Issue