mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-08-02 12:15:11 +02:00
add travis build
This commit is contained in:
51
.travis.yml
Normal file
51
.travis.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
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
|
||||
# Download binary toolchain for the ESP32
|
||||
- wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
|
||||
- tar -xzf xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
|
||||
# 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/examples/mqtt_tcp
|
||||
# Update configuration so that kconfig doesn't start interactive mode
|
||||
- make defconfig
|
||||
# Build project from the git repository
|
||||
- make
|
||||
- cd $PROJECT_PATH/examples/mqtt_ssl
|
||||
- make defconfig
|
||||
- make
|
||||
- cd $PROJECT_PATH/examples/mqtt_ws
|
||||
- make defconfig
|
||||
- make
|
||||
- cd $PROJECT_PATH/examples/mqtt_wss
|
||||
- make defconfig
|
||||
- make
|
Reference in New Issue
Block a user