2015-07-21 20:46:09 +02:00
|
|
|
sudo: false
|
2015-03-05 03:15:27 +01:00
|
|
|
language: cpp
|
2015-07-21 20:46:09 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- python-serial
|
|
|
|
- srecord
|
2015-03-05 03:15:27 +01:00
|
|
|
install:
|
|
|
|
- tar -zxvf tools/esp-open-sdk.tar.gz
|
2015-10-07 04:33:09 +02:00
|
|
|
- export PATH=$PATH:$PWD/esp-open-sdk/xtensa-lx106-elf/bin
|
2015-03-05 03:15:27 +01:00
|
|
|
script:
|
2015-10-07 04:33:09 +02:00
|
|
|
- export BUILD_DATE=$(date +%Y%m%d)
|
|
|
|
- make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
|
2015-03-05 03:15:27 +01:00
|
|
|
- cd bin/
|
2015-03-11 04:02:07 +01:00
|
|
|
- file_name_float="nodemcu_float_${TRAVIS_TAG}.bin"
|
|
|
|
- srec_cat -output ${file_name_float} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
|
|
|
|
- cd ../
|
|
|
|
- make clean
|
2015-10-07 04:33:09 +02:00
|
|
|
- make EXTRA_CCFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'"
|
2015-03-11 04:02:07 +01:00
|
|
|
- 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
|
2015-03-05 04:36:37 +01:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: Swecz5lWvsuSbchSbVQ1rmCPN9nQIN5p/HlZNIEdEgAgnoLcJxRV4P8poVTB37jiA8Pck+8x2nWXpg74Rqik0i3KlPNvDfg5o4rIazWLNs4bc1Tbcpt44XAzFKKLYnDnWQUGcqjk7BcAXuNAF2X/fPBCVhFbHVg3Z7cDb32RsNw=
|
2015-03-11 04:10:43 +01:00
|
|
|
file:
|
|
|
|
- "$TRAVIS_BUILD_DIR/bin/${file_name_float}"
|
|
|
|
- "$TRAVIS_BUILD_DIR/bin/${file_name_integer}"
|
2015-03-05 04:36:37 +01:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
repo: nodemcu/nodemcu-firmware
|