.travis.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.5
  14. - CPU="esp8266" BOARD="esp8266com:esp8266:generic:xtal=80,eesz=1M,FlashMode=qio,FlashFreq=80" IDE_VERSION=1.8.5
  15. - CPU="esp8266" BOARD="esp8266com:esp8266:generic:xtal=80,eesz=1M,FlashMode=qio,FlashFreq=80" IDE_VERSION=1.8.9
  16. - CPU="esp8266" BOARD="esp8266com:esp8266:generic:xtal=80,dbg=Serial1" IDE_VERSION=1.6.5
  17. - CPU="esp32" BOARD="espressif:esp32:esp32:FlashFreq=80" IDE_VERSION=1.6.5
  18. - CPU="esp32" BOARD="espressif:esp32:esp32:FlashFreq=80" IDE_VERSION=1.8.5
  19. - CPU="esp32" BOARD="espressif:esp32:esp32:FlashFreq=80" IDE_VERSION=1.8.9
  20. script:
  21. - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
  22. - export DISPLAY=:1.0
  23. - sleep 3
  24. - wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
  25. - tar xf arduino-$IDE_VERSION-linux64.tar.xz
  26. - mv arduino-$IDE_VERSION $HOME/arduino_ide
  27. - export PATH="$HOME/arduino_ide:$PATH"
  28. - which arduino
  29. - mkdir -p $HOME/Arduino/libraries
  30. - wget https://github.com/bblanchon/ArduinoJson/archive/6.x.zip
  31. - unzip 6.x.zip
  32. - mv ArduinoJson-6.x $HOME/Arduino/libraries/ArduinoJson
  33. - cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/arduinoWebSockets
  34. - source $TRAVIS_BUILD_DIR/travis/common.sh
  35. - get_core $CPU
  36. - cd $TRAVIS_BUILD_DIR
  37. - arduino --board $BOARD --save-prefs
  38. - arduino --get-pref sketchbook.path
  39. - arduino --pref update.check=false
  40. - build_sketches arduino $HOME/Arduino/libraries/arduinoWebSockets/examples/$CPU $CPU
  41. notifications:
  42. email:
  43. on_success: change
  44. on_failure: change
  45. webhooks:
  46. urls:
  47. - https://webhooks.gitter.im/e/1aa78fbe15080b0c2e37
  48. on_success: change # options: [always|never|change] default: always
  49. on_failure: always # options: [always|never|change] default: always
  50. on_start: false # default: false