ac3388367b
Using "DEST" for our build artifacts inside individual bundlescripts was already well-established convention, but this officializes it by having `make.sh` itself set the variable and create the directory, also handling CYGWIN oddities in a single central place (instead of letting them spread outward from `hack/make/binary` like was definitely on their roadmap, whether they knew it or not; sneaky oddities). Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
18 lines
509 B
Bash
18 lines
509 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# subshell so that we can export PATH without breaking other things
|
|
(
|
|
source "${MAKEDIR}/.integration-daemon-start"
|
|
|
|
dockerPy='/docker-py'
|
|
[ -d "$dockerPy" ] || {
|
|
dockerPy="$DEST/docker-py"
|
|
git clone https://github.com/docker/docker-py.git "$dockerPy"
|
|
}
|
|
|
|
# exporting PYTHONPATH to import "docker" from our local docker-py
|
|
test_env PYTHONPATH="$dockerPy" python "$dockerPy/tests/integration_test.py"
|
|
|
|
source "${MAKEDIR}/.integration-daemon-stop"
|
|
) 2>&1 | tee -a "$DEST/test.log"
|