.travis.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. language: c
  2. sudo: false
  3. before_install:
  4. - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
  5. - sleep 3
  6. - export DISPLAY=:1.0
  7. - wget http://downloads.arduino.cc/arduino-1.8.10-linux64.tar.xz
  8. - tar xf arduino-1.8.10-linux64.tar.xz
  9. - sudo mv arduino-1.8.10 /usr/local/share/arduino
  10. - sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
  11. install:
  12. - ln -s $PWD /usr/local/share/arduino/libraries/WiFiManager
  13. - arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json,http://dl.espressif.com/dl/package_esp32_index.json" --save-prefs
  14. - arduino --install-library "ArduinoJson:5.13.2"
  15. - arduino --install-boards esp8266:esp8266
  16. - arduino --pref "compiler.warning_level=all" --save-prefs
  17. # install esp32
  18. - arduino --install-boards esp32:esp32
  19. # - pushd .
  20. # - mkdir -p ~/Arduino/hardware/espressif
  21. # - cd ~/Arduino/hardware/espressif
  22. # - git clone https://github.com/espressif/arduino-esp32.git esp32
  23. # - cd esp32
  24. # - git submodule update --init --recursive
  25. # - cd tools
  26. # - python2 get.py
  27. # - popd
  28. # esp32 needs WebServer_tng for now
  29. # - git clone https://github.com/bbx10/WebServer_tng.git /usr/local/share/arduino/libraries/WebServer_tng
  30. script:
  31. - "echo $PWD"
  32. - "echo $HOME"
  33. - "ls $PWD"
  34. - source $TRAVIS_BUILD_DIR/travis/common.sh
  35. - arduino --board esp8266:esp8266:generic:xtal=80,eesz=4M1M,FlashMode=qio,FlashFreq=80,dbg=Serial,lvl=CORE --save-prefs
  36. - build_examples
  37. - arduino --board esp32:esp32:esp32:FlashFreq=80,FlashSize=4M,DebugLevel=info --save-prefs
  38. # some examples fail (SPIFFS defines differ esp32 vs esp8266) so we exclude them
  39. - build_examples
  40. # - arduino -v --verbose-build --verify $PWD/examples/AutoConnect/AutoConnect.ino
  41. # no coverage generated, no need to run
  42. #
  43. #after_success:
  44. # - bash <(curl -s https://codecov.io/bash)
  45. notifications:
  46. email:
  47. on_success: change
  48. on_failure: change