.travis.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. sudo: false
  2. dist:
  3. - xenial
  4. addons:
  5. apt:
  6. packages:
  7. - xvfb
  8. language: bash
  9. os:
  10. - linux
  11. env:
  12. matrix:
  13. - CPU="esp8266" BOARD="esp8266com:esp8266:generic:xtal=80" IDE_VERSION=1.6.13
  14. - CPU="esp8266" BOARD="esp8266com:esp8266:generic:xtal=80,dbg=Serial1" IDE_VERSION=1.6.13
  15. - CPU="esp8266" BOARD="esp8266com:esp8266:generic:xtal=80,eesz=1M,FlashMode=qio,FlashFreq=80" IDE_VERSION=1.8.13
  16. - CPU="esp32" BOARD="espressif:esp32:esp32:FlashFreq=80" IDE_VERSION=1.8.5
  17. - CPU="esp32" BOARD="espressif:esp32:esp32:FlashFreq=80" IDE_VERSION=1.8.9
  18. - CPU="esp32" BOARD="espressif:esp32:esp32:FlashFreq=80" IDE_VERSION=1.8.13
  19. script:
  20. - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
  21. - export DISPLAY=:1.0
  22. - sleep 3
  23. - wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
  24. - tar xf arduino-$IDE_VERSION-linux64.tar.xz
  25. - mv arduino-$IDE_VERSION $HOME/arduino_ide
  26. - export PATH="$HOME/arduino_ide:$PATH"
  27. - which arduino
  28. - mkdir -p $HOME/Arduino/libraries
  29. - wget https://github.com/bblanchon/ArduinoJson/archive/6.x.zip
  30. - unzip 6.x.zip
  31. - mv ArduinoJson-6.x $HOME/Arduino/libraries/ArduinoJson
  32. - cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/arduinoWebSockets
  33. - source $TRAVIS_BUILD_DIR/travis/common.sh
  34. - get_core $CPU
  35. - cd $TRAVIS_BUILD_DIR
  36. - arduino --board $BOARD --save-prefs
  37. - arduino --get-pref sketchbook.path
  38. - arduino --pref update.check=false
  39. - build_sketches arduino $HOME/Arduino/libraries/arduinoWebSockets/examples/$CPU $CPU
  40. notifications:
  41. email:
  42. on_success: change
  43. on_failure: change