Travis: Work around 4MB log limit when building all examples

This commit is contained in:
Angus Gratton 2016-05-04 07:34:54 +10:00
parent 4446357e27
commit 6767891672

View file

@ -8,6 +8,7 @@ env:
ESPTOOL2_COMMIT=ec0e2c7 ESPTOOL2_COMMIT=ec0e2c7
ESPTOOL2_DIR="${HOME}/esptool2-${ESPTOOL2_COMMIT}" ESPTOOL2_DIR="${HOME}/esptool2-${ESPTOOL2_COMMIT}"
PATH=${PATH}:${CROSS_BINDIR}:${ESPTOOL2_DIR} PATH=${PATH}:${CROSS_BINDIR}:${ESPTOOL2_DIR}
MAKE_CMD="make WARNINGS_AS_ERRORS=1 -C examples/ build-examples CROSS=\"ccache xtensa-lx106-elf-\""
cache: cache:
directories: directories:
- ${CROSS_ROOT} - ${CROSS_ROOT}
@ -58,4 +59,6 @@ script:
- cd ${TRAVIS_BUILD_DIR} - cd ${TRAVIS_BUILD_DIR}
# Remove ssid_config requirement for examples # Remove ssid_config requirement for examples
- sed -i "s%#error%//#error%" include/ssid_config.h - sed -i "s%#error%//#error%" include/ssid_config.h
- make WARNINGS_AS_ERRORS=1 -C examples/ build-examples CROSS="ccache xtensa-lx106-elf-" V=1 # Try building everything w/ non-verbose output (to avoid 4MB log limit), but if it fails then
# rerun with V=1 so the error part is output verbosely
- ${MAKE_CMD} || ( ${MAKE_CMD} V=1 )