From 9f64a9df00ee093191fb6c084a496a606e742c83 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Wed, 14 Dec 2016 15:35:58 -0800 Subject: [PATCH] Add new Makefile targets for the CI This builds both the standard and AUFS versions of Moby, and does `make clean` carefully. - `make ci` for branches (pushes artifacts) - `make pr` for PRs Signed-off-by: Justin Cormack --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index c02b9ef0b..9c5b5ef77 100644 --- a/Makefile +++ b/Makefile @@ -82,6 +82,24 @@ else $(error "git not clean") endif +ci: + $(MAKE) clean + $(MAKE) all + $(MAKE) test + $(MAKE) media + $(MAKE) clean + $(MAKE) AUFS=1 all + $(MAKE) AUFS=1 test + $(MAKE) AUFS=1 media + +ci-pr: + $(MAKE) clean + $(MAKE) all + $(MAKE) test + $(MAKE) clean + $(MAKE) AUFS=1 all + $(MAKE) AUFS=1 test + .PHONY: clean clean: