1 Star 0 Fork 0

fredxuji/esptool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
language: python
dist: xenial # required for Python >= 3.7
env:
# Downloadable toolchains & SDKs for esp8266 & esp32
#
# Toolchains used for automated builds:
# ESP8266 - prebuilt gcc 4.8.2 from ESP8266 Arduino
# ESP32 - official Espressif toolchain
#
# Note: if these are updated, you need to flush the Travis cache
#
# (esp-idf is downloaded a zip file. It doesn't fully work this way, but
# we're just using it for some header files.)
# Toolchains
ESP8266_TOOLCHAIN_URL="https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-92-g8facf4c-5.2.0.tar.gz"
ESP32_TOOLCHAIN_URL="https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz"
TOOLCHAIN_DIR="${HOME}/toolchain"
ESP8266_BINDIR="${TOOLCHAIN_DIR}/xtensa-lx106-elf/bin"
ESP32_BINDIR="${TOOLCHAIN_DIR}/xtensa-esp32-elf/bin"
SDKS_DIR="${HOME}/sdks"
SDK_PATH="${SDKS_DIR}/ESP8266_NONOS_SDK-2.2.0"
ESP8266_SDK_URL="https://github.com/espressif/ESP8266_NONOS_SDK/archive/v2.2.0.zip"
IDF_PATH="${SDKS_DIR}/esp-idf"
ESP32_IDF_URL="https://github.com/espressif/esp-idf/archive/v2.1.zip"
PATH="${PATH}:${ESP8266_BINDIR}:${ESP32_BINDIR}"
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
before_install:
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then ./.travis_setup_build_env.sh; fi
script:
# test python components (fast)
- python setup.py build
# this is hacky, installing test script deps via pip as need to be in the virtualenv
# but don't count if only in setup.py's .eggs dir, and "setup.py test" integration
# doesn't allow running esptool.py as a script...
- pip install pyserial pyelftools
- python test/test_imagegen.py
- python test/test_espsecure.py
- pip install flake8 flake8-future-import # matches tests_require in setup.py, a bit hacky
- python setup.py flake8
- python setup.py install
- ( cd / && esptool.py --help ) # check the installed versions can run
- ( cd / && espefuse.py --help )
- ( cd / && espsecure.py --help )
# build stub (Python 3 only)
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then make -C flasher_stub V=1; fi
# check the just-built stub matches the one in esptool.py
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then cd flasher_stub && python ./compare_stubs.py; fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/fredxuji/esptool.git
git@gitee.com:fredxuji/esptool.git
fredxuji
esptool
esptool
master

搜索帮助