From 00354ccc2047f77665bf76e988107043a514dfca Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 14 Aug 2023 10:57:48 -0400 Subject: [PATCH] Add a volume for cargo cache. This is to be a good citizen by not downloading all the rust dependencies every time I run the tests locally. Unfortunately, it will still compile all the dependencies each time, but that is a local operation. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 235a305f..cc8d53f2 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ test: .PHONY: dockertest dockertest: > $(MAKE) -C docker/organic_test -> docker run --rm -i -t -v "$$(readlink -f ./):/.source:ro" -w / organic-test sh -c "cp -r /.source /source && cd /source && cargo test --lib --test test_loader" +> docker run --rm -i -t -v "$$(readlink -f ./):/.source:ro" --mount source=cargo-cache,target=/usr/local/cargo/registry -w / organic-test sh -c "cp -r /.source /source && cd /source && cargo test --lib --test test_loader" .PHONY: integrationtest integrationtest: