0
0
Fork 0

feat: Add CI

This commit is contained in:
windowsair 2020-02-04 21:43:25 +08:00
parent fa620583bb
commit 33977e20dd
1 changed files with 27 additions and 0 deletions

27
.travis.yml Normal file
View File

@ -0,0 +1,27 @@
language: c
sudo: required
before_install:
- sudo apt install -y gcc git wget make libncurses-dev flex bison gperf python python-serial
- wget https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
install:
- tar -xzf ./xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
- git clone --recursive https://github.com/espressif/ESP8266_RTOS_SDK.git
- python -m pip install --user -r ./ESP8266_RTOS_SDK/requirements.txt
before_script:
- sudo IDF_PATH=$PWD/ESP8266_RTOS_SDK
- sudo PATH="$PATH:$PWD/xtensa-lx106-elf/bin"
script:
- ./idf.py fullclean
- ./idf.py build
deploy:
provider: releases
api_key: ${GITHUB_TOKEN}
file:
- ./build/esp8266_dap.bin
skip_cleanup: true
on:
tags: true