forked from nodemcu/nodemcu-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate an extra build step for PRs to build a special firmware
Fixes nodemcu#756
- Loading branch information
1 parent
340edbb
commit f9ff515
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/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 | ||
|
||
# disable SSL | ||
sed -i.bak 's@#define CLIENT_SSL_ENABLE@//#define CLIENT_SSL_ENABLE@' user_config.h | ||
cat user_config.h | ||
|
||
# change to "root" directory no matter where the script was started from | ||
cd "$TRAVIS_BUILD_DIR" || exit | ||
make clean | ||
make | ||
) |