.travis.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. sudo: false
  2. language: bash
  3. os:
  4. - linux
  5. addons:
  6. apt:
  7. packages:
  8. - gperf
  9. - python
  10. - python-serial
  11. before_install:
  12. # Save path to the git respository
  13. - PROJECT_PATH=$(pwd)
  14. install:
  15. # Install ESP32 toochain following steps as desribed
  16. # in http://esp-idf.readthedocs.io/en/latest/linux-setup.html
  17. #
  18. # Get required packages - already done above, see addons: apt: packages:
  19. # - sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
  20. # Prepare directory for the toolchain
  21. - mkdir -p ~/esp
  22. - cd ~/esp
  23. - XTENSA_DIST=xtensa-esp32-elf-linux64-1.22.0-75-gbaf03c2-5.2.0.tar.gz
  24. # Download binary toolchain for the ESP32
  25. - wget https://dl.espressif.com/dl/$XTENSA_DIST
  26. - tar -xzf $XTENSA_DIST
  27. # Make xtensa-esp32-elf available for all terminal sessions
  28. - export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
  29. # Get ESP-IDF from github
  30. - git clone --recursive https://github.com/espressif/esp-idf.git
  31. # Set the path to ESP-IDF directory
  32. - export IDF_PATH=~/esp/esp-idf
  33. script:
  34. # Go back to the git repository
  35. - cd $PROJECT_PATH
  36. # Update configuration so that kconfig doesn't start interactive mode
  37. - make defconfig
  38. # Build project from the git repository
  39. - make