esp_mqtt/.travis.yml

31 wiersze
1023 B
YAML

2015-03-05 10:27:44 +00:00
language: cpp
before_install:
- sudo apt-get -qq update
2015-03-05 10:27:44 +00:00
- sudo apt-get install -y python-serial srecord
install:
2016-09-09 16:03:28 +00:00
- mkdir tools && cd tools
- git clone https://github.com/themadinventor/esptool.git
- wget https://github.com/nodemcu/nodemcu-firmware/raw/master/tools/esp-open-sdk.tar.gz
- tar -zxvf esp-open-sdk.tar.gz
2016-09-09 15:58:05 +00:00
- export PATH=$PATH:$PWD/esp-open-sdk/xtensa-lx106-elf/bin
2016-09-09 16:05:51 +00:00
- chmod +x $PWD/esptool/esptool.py
- export ESPTOOL=$PWD/esptool/esptool.py
2016-09-18 11:04:48 +00:00
- wget http://bbs.espressif.com/download/file.php?id=1690 -O ESP8266_NONOS_SDK_V2.0.0_16_08_10.zip
- unzip ESP8266_NONOS_SDK_V2.0.0_16_08_10.zip
2016-09-09 16:03:28 +00:00
- export SDK_BASE=$PWD/ESP8266_NONOS_SDK
2016-09-09 16:05:51 +00:00
- cd ..
2015-03-05 10:27:44 +00:00
script:
2016-09-09 15:52:12 +00:00
- ls
- cp include/user_config.sample.h include/user_config.local.h
2016-09-09 15:58:05 +00:00
- make
2015-03-05 10:27:44 +00:00
- cd firmware/
2016-09-09 16:10:33 +00:00
- srec_cat -output ${file_name} -binary esp_mqtt0x00000.bin -binary -fill 0xff 0x00000 0x10000 esp_mqtt0x10000.bin -binary -offset 0x10000
2015-03-05 10:27:44 +00:00
deploy:
provider: releases
api_key:
file: "$TRAVIS_BUILD_DIR/firmware/${file_name}"
skip_cleanup: true
on:
tags: true
repo: tuanpmt/esp_mqtt