Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
f9ff515d
Commit
f9ff515d
authored
Nov 15, 2015
by
Marcel Stör
Browse files
Integrate an extra build step for PRs to build a special firmware
Fixes #756
parent
340edbbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
f9ff515d
...
...
@@ -20,6 +20,8 @@ script:
-
cd bin/
-
file_name_integer="nodemcu_integer_${TRAVIS_TAG}.bin"
-
srec_cat -output ${file_name_integer} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
-
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/pr-build.sh; fi
deploy
:
provider
:
releases
api_key
:
...
...
tools/pr-build.sh
0 → 100644
View file @
f9ff515d
#!/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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment