CI: integrate example test to CI

This commit is contained in:
He Yin Ling
2017-10-10 10:55:25 +08:00
parent 8ed14791d0
commit cd1223a25e
2 changed files with 44 additions and 4 deletions

View File

@@ -118,7 +118,8 @@ build_example () {
(
make MAKEFLAGS= clean &&
make MAKEFLAGS= defconfig &&
make all
make all &&
make print_flash_cmd | tail -n 1 > build/download.config
) &> >(tee -a "${BUILDLOG}") || {
RESULT=$?; FAILED_EXAMPLES+=" ${EXAMPLE_NAME}"
make MAKEFLAGS= V=1 clean defconfig && make V=1 # verbose output for errors