mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Only run docker in interactive mode when stdin is a terminal
This commit is contained in:
parent
a9d9e89d0c
commit
44de30374f
6
Makefile
6
Makefile
@ -94,7 +94,11 @@ test:
|
||||
py.test -v $(testargs); \
|
||||
else \
|
||||
$(MAKE) -s require-docker && \
|
||||
docker run --rm -it -v "$(CURDIR):/yadm:ro" $(IMAGE) make test testargs="$(testargs)"; \
|
||||
docker run \
|
||||
--rm -t$(shell test -t 0 && echo i) \
|
||||
-v "$(CURDIR):/yadm:ro" \
|
||||
$(IMAGE) \
|
||||
make test testargs="$(testargs)"; \
|
||||
fi
|
||||
|
||||
.PHONY: .testyadm
|
||||
|
Loading…
Reference in New Issue
Block a user