Skip to content

Commit

Permalink
BUILDTEST: hack to only get failures in 'Makefile.include'
Browse files Browse the repository at this point in the history
  • Loading branch information
cladmi committed Jun 3, 2019
1 parent 75df152 commit 43ad278
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions makefiles/buildtests.inc.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: buildtest

BUILDTEST_MAKE_REDIRECT ?= >/dev/null 2>&1
BUILDTEST_MAKE_REDIRECT ?= >/dev/null

ifeq ($(BUILD_IN_DOCKER),1)
buildtest: ..in-docker-container
Expand All @@ -9,19 +9,16 @@ buildtest:
@ \
RESULT=true ; \
for board in $(BOARDS); do \
if BOARD=$${board} $(MAKE) check-toolchain-supported > /dev/null 2>&1; then \
$(COLOR_ECHO) -n "Building for $$board ... " ; \
BOARD=$${board} RIOT_CI_BUILD=1 RIOT_VERSION_OVERRIDE=buildtest \
$(MAKE) clean all -j $(NPROC) $(BUILDTEST_MAKE_REDIRECT); \
RES=$$? ; \
if [ $$RES -eq 0 ]; then \
$(COLOR_ECHO) "$(COLOR_GREEN)success.$(COLOR_RESET)" ; \
else \
$(COLOR_ECHO) "$(COLOR_RED)failed!$(COLOR_RESET)" ; \
RESULT=false ; \
fi ; \
BOARD=$${board} $(MAKE) clean-intermediates >/dev/null 2>&1 || true; \
fi; \
$(COLOR_ECHO) -n "Building for $$board ... " ; \
BOARD=$${board} RIOT_CI_BUILD=1 RIOT_VERSION_OVERRIDE=buildtest \
$(MAKE) clean $(BUILDTEST_MAKE_REDIRECT); \
RES=$$? ; \
if [ $$RES -eq 0 ]; then \
$(COLOR_ECHO) "$(COLOR_GREEN)success.$(COLOR_RESET)" ; \
else \
$(COLOR_ECHO) "$(COLOR_RED)failed!$(COLOR_RESET)" ; \
RESULT=false ; \
fi ; \
done ; \
$${RESULT}
endif # BUILD_IN_DOCKER

0 comments on commit 43ad278

Please sign in to comment.