From 33977e20ddbe3d94c5895645049bf992a20f6cda Mon Sep 17 00:00:00 2001 From: windowsair Date: Tue, 4 Feb 2020 21:43:25 +0800 Subject: [PATCH] feat: Add CI --- .travis.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..cdd9b30 --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file