From 68f3c261b0e6f2e6d905829abe1476d650080771 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Wed, 6 May 2015 13:57:40 +0200 Subject: [PATCH] docker: Add support for buildtests inside Docker. --- Makefile.buildtests | 4 ++++ Makefile.docker | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile.buildtests b/Makefile.buildtests index 4a80aa47e1..bee3885ee8 100644 --- a/Makefile.buildtests +++ b/Makefile.buildtests @@ -31,6 +31,9 @@ endif info-buildsizes-diff info-build info-boards-supported \ info-features-missing info-boards-features-missing +ifeq ($(BUILD_IN_DOCKER),1) +buildtest: ..in-docker-container +else buildtest: @ \ BUILDTESTOK=true; \ @@ -66,6 +69,7 @@ buildtest: done; \ done; \ $${BUILDTESTOK} +endif # BUILD_IN_DOCKER info-objsize: @case "${SORTROW}" in \ diff --git a/Makefile.docker b/Makefile.docker index 1cfffbc4d7..5dd2021429 100644 --- a/Makefile.docker +++ b/Makefile.docker @@ -4,6 +4,7 @@ export DOCKER_FLAGS ?= --rm # List of Docker-enabled make goals export DOCKER_MAKECMDGOALS_POSSIBLE = \ all \ + buildtest \ # export DOCKER_MAKECMDGOALS = $(filter $(MAKECMDGOALS),$(DOCKER_MAKECMDGOALS_POSSIBLE))