Blame view

RIOT/makefiles/buildtests.inc.mk 620 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  .PHONY: buildtest
  
  ifeq ($(BUILD_IN_DOCKER),1)
  buildtest: ..in-docker-container
  else
  buildtest:
  	@ \
  	RESULT=true ; \
  	for board in $(BOARDS); do \
  		${COLOR_ECHO} -n "Building for $$board ... " ; \
  		BOARD=$${board} RIOT_CI_BUILD=1 RIOT_VERSION_OVERRIDE=buildtest \
  			$(MAKE) clean all -j $(NPROC) >/dev/null 2>&1; \
  		RES=$$? ; \
  		if [ $$RES -eq 0 ]; then \
  			${COLOR_ECHO} "$(COLOR_GREEN)success.${COLOR_RESET}" ; \
  		else \
  			${COLOR_ECHO} "$(COLOR_RED)failed!${COLOR_RESET}" ; \
  			RESULT=false ; \
  		fi ; \
  		$(MAKE) clean-intermediates >/dev/null 2>&1 || true; \
  	done ; \
  	$${RESULT}
  endif # BUILD_IN_DOCKER