forked from tuanpmt/esp_mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1023 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: cpp
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y python-serial srecord
install:
- 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
- export PATH=$PATH:$PWD/esp-open-sdk/xtensa-lx106-elf/bin
- chmod +x $PWD/esptool/esptool.py
- export ESPTOOL=$PWD/esptool/esptool.py
- wget http://bbs.espressif.com/download/file.php?id=1613 -O ESP8266_NONOS_SDK_V2.0.0_16_07_19.zip
- unzip ESP8266_NONOS_SDK_V2.0.0_16_07_19.zip
- export SDK_BASE=$PWD/ESP8266_NONOS_SDK
- cd ..
script:
- ls
- cp include/user_config.sample.h include/user_config.local.h
- make
- cd firmware/
- srec_cat -output ${file_name} -binary esp_mqtt0x00000.bin -binary -fill 0xff 0x00000 0x10000 esp_mqtt0x10000.bin -binary -offset 0x10000
deploy:
provider: releases
api_key:
file: "$TRAVIS_BUILD_DIR/firmware/${file_name}"
skip_cleanup: true
on:
tags: true
repo: tuanpmt/esp_mqtt