2015-03-05 03:15:27 +01:00
|
|
|
language: cpp
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get install -y python-serial srecord
|
|
|
|
install:
|
2015-03-05 03:19:54 +01:00
|
|
|
- wget https://github.com/GeorgeHahn/nodemcu-firmware/raw/travis/tools/esp-open-sdk.tar.gz -O tools/esp-open-sdk.tar.gz
|
2015-03-05 03:15:27 +01:00
|
|
|
- tar -zxvf tools/esp-open-sdk.tar.gz
|
|
|
|
- export PATH=$PATH:$PWD/esp-open-sdk/sdk:$PWD/esp-open-sdk/xtensa-lx106-elf/bin
|
|
|
|
script:
|
|
|
|
- make all
|
|
|
|
- cd bin/
|
2015-03-09 18:12:36 +01:00
|
|
|
- file_name="nodemcu_${TRAVIS_TAG}.bin"
|
2015-03-05 03:15:27 +01:00
|
|
|
- srec_cat -output ${file_name} -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=
|
|
|
|
file: "$TRAVIS_BUILD_DIR/bin/${file_name}"
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
repo: nodemcu/nodemcu-firmware
|