From 79b4c9a9dbd06986085f8cd599ae59aede5323bb Mon Sep 17 00:00:00 2001 From: ssube Date: Sat, 2 Nov 2019 09:10:27 -0500 Subject: [PATCH] fix(build): add full build target for local and containers --- run.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/run.mk b/run.mk index 1525a3e..38a6bf1 100644 --- a/run.mk +++ b/run.mk @@ -36,4 +36,13 @@ local-alpine: docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-stretch make ci local-stretch: - docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-alpine sh -c "apk add build-base && make ci" + docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-alpine sh -c "apk add build-base git && make ci" + +full: ## ultra thorough build (looong) + $(MAKE) clean-target ci + $(MAKE) clean-target local-alpine + $(MAKE) clean-target local-stretch + # clean up root-owned files the containers may leak + sudo chown -R ${USER}:${USER} $(ROOT_PATH) + $(MAKE) clean-target + @echo "Full build (CI, alpine, stretch) succeeded! \ No newline at end of file