1
0
Fork 0

fix(build): add full build target for local and containers

This commit is contained in:
ssube 2019-11-02 09:10:27 -05:00 committed by Sean Sube
parent 9fbf7cc0c7
commit 79b4c9a9db
1 changed files with 10 additions and 1 deletions

11
run.mk
View File

@ -36,4 +36,13 @@ local-alpine:
docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-stretch make ci docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-stretch make ci
local-stretch: 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!