-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
43 lines (39 loc) · 1.23 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
42
43
sudo: false
language: bash
os:
- linux
addons:
apt:
packages:
- gperf
- python
- python-serial
before_install:
# Save path to the git respository
- PROJECT_PATH=$(pwd)
install:
# Install ESP32 toochain following steps as desribed
# in http://esp-idf.readthedocs.io/en/latest/linux-setup.html
#
# Get required packages - already done above, see addons: apt: packages:
# - sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
# Prepare directory for the toolchain
- mkdir -p ~/esp
- cd ~/esp
- XTENSA_DIST=xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar.gz
# Download binary toolchain for the ESP32
- wget https://dl.espressif.com/dl/$XTENSA_DIST
- tar -xzf $XTENSA_DIST
# Make xtensa-esp32-elf available for all terminal sessions
- export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
# Get ESP-IDF from github
- git clone --recursive https://github.com/espressif/esp-idf.git
# Set the path to ESP-IDF directory
- export IDF_PATH=~/esp/esp-idf
script:
# Go back to the git repository
- cd $PROJECT_PATH
# Update configuration so that kconfig doesn't start interactive mode
- make defconfig
# Build project from the git repository
- make