2015-11-15 20:11:24 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "Running PR build (all modules, SSL disabled)"
|
|
|
|
(
|
|
|
|
cd "$TRAVIS_BUILD_DIR"/app/include || exit
|
|
|
|
# uncomment disabled modules e.g. '//#define LUA_USE_MODULES_UCG' -> '#define LUA_USE_MODULES_UCG'
|
|
|
|
sed -E -i.bak 's@(//.*)(#define *LUA_USE_MODULES_.*)@\2@g' user_modules.h
|
|
|
|
cat user_modules.h
|
|
|
|
|
2016-07-13 22:46:37 +02:00
|
|
|
# enable SSL
|
|
|
|
sed -i.bak 's@//#define CLIENT_SSL_ENABLE@#define CLIENT_SSL_ENABLE@' user_config.h
|
2015-11-15 20:11:24 +01:00
|
|
|
cat user_config.h
|
|
|
|
|
2016-02-20 22:55:34 +01:00
|
|
|
cd "$TRAVIS_BUILD_DIR"/ld || exit
|
|
|
|
# increase irom0_0_seg size for all modules build
|
2016-08-14 10:19:01 +02:00
|
|
|
sed -E -i.bak 's@(.*irom0_0_seg *:.*len *=) *[^,]*(.*)@\1 0xC0000\2@' nodemcu.ld
|
2016-02-20 22:55:34 +01:00
|
|
|
cat nodemcu.ld
|
|
|
|
|
2015-11-15 20:11:24 +01:00
|
|
|
# change to "root" directory no matter where the script was started from
|
|
|
|
cd "$TRAVIS_BUILD_DIR" || exit
|
|
|
|
make clean
|
|
|
|
make
|
|
|
|
)
|