forked from espressif/esptool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (36 loc) · 1.32 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
# Travis CI config
#
# Note: When updating, please also update .gitlab-ci.yml
language: python
dist: xenial # required for Python >= 3.7
env:
TOOLCHAIN_DIR="${HOME}/toolchain"
ESP8266_BINDIR="${TOOLCHAIN_DIR}/xtensa-lx106-elf/bin"
ESP32_BINDIR="${TOOLCHAIN_DIR}/xtensa-esp32-elf/bin"
ESP32S2_BINDIR="${TOOLCHAIN_DIR}/xtensa-esp32s2-elf/bin"
ESP32S3_BINDIR="${TOOLCHAIN_DIR}/xtensa-esp32s3-elf/bin"
ESP32C3_BINDIR="${TOOLCHAIN_DIR}/riscv32-esp-elf/bin"
PATH="${PATH}:${ESP8266_BINDIR}:${ESP32_BINDIR}:${ESP32S2_BINDIR}:${ESP32S3_BINDIR}:${ESP32C3_BINDIR}"
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
before_install:
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then ./test/ci/setup_ci_build_env.sh; fi
script:
# test python components (fast)
- python setup.py build
- pip install -e .[dev]
- python test/test_imagegen.py
- python test/test_espsecure.py
- python -m 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