1
0
Fork 0
mirror of synced 2024-11-04 09:08:56 -05:00

Remove the requirement on docker-compose for running tests

Besides simplifying the setup it also has the nice side-effect of
being able to override the docker image on the command line:
$ make test IMAGE=foobar
This commit is contained in:
Erik Flodin 2020-12-29 13:57:51 +01:00
parent d005ce4df4
commit 39e43a7a74
No known key found for this signature in database
GPG key ID: 420A7C865EE3F85F
3 changed files with 3 additions and 14 deletions

View file

@ -207,7 +207,7 @@ these principles when making changes.
```
4. Verify you can run the test harness. _(This will require dependencies:
`make`, `docker`, and `docker-compose`)_.
`make` and `docker`)_.
```text
$ make test

View file

@ -93,12 +93,8 @@ test:
cd /yadm && \
py.test -v $(testargs); \
else \
if command -v "docker-compose" > /dev/null 2>&1; then \
docker-compose run --rm testbed make test testargs="$(testargs)"; \
else \
echo "Sorry, this make test requires docker-compose to be installed."; \
false; \
fi \
$(MAKE) -s require-docker && \
docker run --rm -it -v "$(CURDIR):/yadm:ro" $(IMAGE) make test testargs="$(testargs)"; \
fi
.PHONY: testhost

View file

@ -1,7 +0,0 @@
---
version: '3'
services:
testbed:
volumes:
- .:/yadm:ro
image: yadm/testbed:2020-12-21