Travis: Work around 4MB log limit when building all examples
This commit is contained in:
parent
fee987d5cf
commit
57c718d835
4 changed files with 57 additions and 20 deletions
15
utils/travis_build/install_esptool2.sh
Executable file
15
utils/travis_build/install_esptool2.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -uv
|
||||
|
||||
# Called by Travis to install esptool2 to generate OTA-compatible build
|
||||
# images
|
||||
|
||||
if test -f ${ESPTOOL2_DIR}/esptool2; then
|
||||
echo "Using cached esptool2"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git clone https://github.com/raburton/esptool2 ${ESPTOOL2_DIR}
|
||||
cd ${ESPTOOL2_DIR}
|
||||
git reset --hard ${ESPTOOL2_COMMIT}
|
||||
make
|
35
utils/travis_build/install_toolchain.sh
Executable file
35
utils/travis_build/install_toolchain.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
set -euv
|
||||
|
||||
# Called by Travis to install a toolchain using esp-open-sdk (parts we
|
||||
# ne for esp-open-rtos are the GNU toolchain, libhal, and esptool.py.)
|
||||
|
||||
if test -d ${CROSS_BINDIR}; then
|
||||
echo "Using cached toolchain in ${CROSS_BINDIR}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Travis sets this due to "language: c", but it confuses autotools configure when cross-building
|
||||
unset CC
|
||||
|
||||
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
|
||||
cd esp-open-sdk
|
||||
git reset --hard ${OPENSDK_COMMIT}
|
||||
git submodule update --init
|
||||
|
||||
# this is a nasty hack as Ubuntu Precise only has autoconf 2.68 not 2.69...
|
||||
sed -i "s/2.69/2.68/" lx106-hal/configure.ac
|
||||
|
||||
# build the toolchain relative to the CROSS_ROOT directory
|
||||
sed -r -i 's%TOOLCHAIN ?=.*%TOOLCHAIN=${CROSS_ROOT}%' Makefile
|
||||
|
||||
# will dump log on failure
|
||||
echo "Building toolchain without live progress, as progress spinner fills up log..."
|
||||
|
||||
if !( make toolchain esptool libhal STANDALONE=n 2>&1 > make.log ); then
|
||||
cat make.log
|
||||
echo "Exiting due to failed toolchain build"
|
||||
exit 3
|
||||
fi
|
||||
|
||||
echo "Toolchain build completed in ${CROSS_ROOT}."
|
Loading…
Add table
Add a link
Reference in a new issue