|
| 1 | +os: linux |
1 | 2 | dist: bionic |
2 | 3 | language: python |
3 | 4 | python: "3.8" |
4 | 5 |
|
5 | | -before_install: |
6 | | - # Save path to the git respository |
7 | | - - PROJECT_PATH=$(pwd) |
| 6 | +jobs: |
| 7 | + include: |
| 8 | + - stage: # IDF v3.3 |
| 9 | + install: |
| 10 | + # Install ESP32 toochain following steps as described |
| 11 | + # in http://esp-idf.readthedocs.io/en/latest/linux-setup.html |
| 12 | + # |
| 13 | + # Download binary toolchain for the ESP32 |
| 14 | + - pushd ~ |
| 15 | + - wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz |
| 16 | + - tar -xzf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz |
| 17 | + # Make xtensa-esp32-elf available for all terminal sessions |
| 18 | + - export PATH=$PATH:$(pwd)/xtensa-esp32-elf/bin |
| 19 | + # Get ESP-IDF from github |
| 20 | + - git clone --recursive --branch v3.3 --single-branch --shallow-submodules https://github.com/espressif/esp-idf.git esp-idf |
| 21 | + # Set the path to ESP-IDF directory |
| 22 | + - export IDF_PATH=$(pwd)/esp-idf |
| 23 | + # Install python dependencies |
| 24 | + - pip install --requirement $IDF_PATH/requirements.txt |
| 25 | + - popd |
| 26 | + script: |
| 27 | + - $IDF_PATH/tools/idf.py build |
8 | 28 |
|
9 | | -install: |
10 | | - # Install ESP32 toochain following steps as desribed |
11 | | - # in http://esp-idf.readthedocs.io/en/latest/linux-setup.html |
12 | | - # |
13 | | - # Get required packages - already done above, see addons: apt: packages: |
14 | | - # - sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial |
15 | | - # Prepare directory for the toolchain |
16 | | - - mkdir -p ~/esp |
17 | | - - cd ~/esp |
18 | | - # Download binary toolchain for the ESP32 |
19 | | - - wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz |
20 | | - - tar -xzf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz |
21 | | - # Make xtensa-esp32-elf available for all terminal sessions |
22 | | - - export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin |
23 | | - # Get ESP-IDF from github |
24 | | - - git clone --recursive --branch v3.3 --single-branch --shallow-submodules https://github.com/espressif/esp-idf.git |
25 | | - # Set the path to ESP-IDF directory |
26 | | - - export IDF_PATH=~/esp/esp-idf |
27 | | - # Install python dependencies |
28 | | - - pip install --requirement $IDF_PATH/requirements.txt |
29 | | - |
30 | | -script: |
31 | | - # Build project within the original repository |
32 | | - - cd $PROJECT_PATH |
33 | | - - $IDF_PATH/tools/idf.py build |
| 29 | + - stage: # IDF v4.1-beta1 |
| 30 | + install: |
| 31 | + - pushd ~ |
| 32 | + - git clone --recursive --branch v4.1-beta1 --single-branch --shallow-submodules https://github.com/espressif/esp-idf.git esp-idf |
| 33 | + - esp-idf/install.sh |
| 34 | + - popd |
| 35 | + script: |
| 36 | + - source ~/esp-idf/export.sh && idf.py build |
0 commit comments