Add ESP32 builds to CI, use new toolchains.

This commit is contained in:
Johny Mattsson 2016-06-25 23:18:42 +10:00
parent 79671aa526
commit 6abc1c32f3
4 changed files with 12 additions and 2 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "esp32-rtos-sdk"] [submodule "esp32-rtos-sdk"]
path = sdk/esp32-rtos-sdk path = sdk/esp32-rtos-sdk
url = https://github.com/espressif/ESP32_RTOS_SDK.git url = https://github.com/espressif/ESP32_RTOS_SDK.git
[submodule "toolchains"]
path = tools/toolchains
url = https://github.com/jmattsson/nodemcu-prebuilt-toolchains.git

View File

@ -9,8 +9,7 @@ cache:
directories: directories:
- cache - cache
install: install:
- tar -zxvf tools/esp-open-sdk.tar.gz - export PATH=$PWD/tools/toolchains/esp8266/bin:$PWD/tools/toolchains/esp32/bin:$PATH
- export PATH=$PATH:$PWD/esp-open-sdk/xtensa-lx106-elf/bin
script: script:
- export BUILD_DATE=$(date +%Y%m%d) - export BUILD_DATE=$(date +%Y%m%d)
- make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all - make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
@ -23,5 +22,12 @@ script:
- cd bin/esp8266 - cd bin/esp8266
- file_name_integer="nodemcu_integer_${TRAVIS_TAG}.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 - srec_cat -output ${file_name_integer} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
- cd ../..
- make clean
- make HW=ESP32 EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
- mv bin/esp32 bin/esp32-float
- make clean
- make HW=ESP32 EXTRA_CCFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'"
- mv bin/esp32 bin/esp32-integer
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables # 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 - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/pr-build.sh; fi

Binary file not shown.

1
tools/toolchains Submodule

@ -0,0 +1 @@
Subproject commit c43f68cf04b7881d755feb5377613d93c0d5766b