.travis.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. language: c
  2. python:
  3. - "2.7"
  4. # Cache PlatformIO packages using Travis CI container-based infrastructure
  5. cache:
  6. pip: true
  7. directories:
  8. - "~/.platformio"
  9. env:
  10. - >
  11. PLATFORMIO_CI_SRC=$PWD/examples/Webserver
  12. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/Webserver.ino
  13. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
  14. - >
  15. PLATFORMIO_CI_SRC=$PWD/examples/ReceiveDemo_Simple
  16. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/ReceiveDemo_Simple.ino
  17. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
  18. - >
  19. PLATFORMIO_CI_SRC=$PWD/examples/TypeC_Intertechno
  20. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeC_Intertechno.ino
  21. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
  22. - >
  23. PLATFORMIO_CI_SRC=$PWD/examples/TypeD_REV
  24. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeD_REV.ino
  25. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
  26. - >
  27. PLATFORMIO_CI_SRC=$PWD/examples/TypeA_WithDIPSwitches
  28. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeA_WithDIPSwitches.ino
  29. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
  30. - >
  31. PLATFORMIO_CI_SRC=$PWD/examples/TypeA_WithDIPSwitches_Lightweight
  32. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeA_WithDIPSwitches_Lightweight.ino
  33. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
  34. - >
  35. PLATFORMIO_CI_SRC=$PWD/examples/TypeB_WithRotaryOrSlidingSwitches
  36. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeB_WithRotaryOrSlidingSwitches.ino
  37. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
  38. - >
  39. PLATFORMIO_CI_SRC=$PWD/examples/SendDemo
  40. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/SendDemo.ino
  41. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
  42. - >
  43. PLATFORMIO_CI_SRC=$PWD/examples/ReceiveDemo_Advanced
  44. ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/ReceiveDemo_Advanced.ino
  45. BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
  46. before_install:
  47. # Arduino IDE
  48. - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
  49. - sleep 3
  50. - export DISPLAY=:1.0
  51. - wget http://downloads.arduino.cc/arduino-1.6.9-linux64.tar.xz
  52. - tar xf arduino-1.6.9-linux64.tar.xz
  53. - sudo mv arduino-1.6.9 /usr/local/share/arduino
  54. - sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
  55. install:
  56. # Arduino IDE
  57. - ln -s $PWD /usr/local/share/arduino/libraries/rc-switch
  58. # PlatformIO
  59. - sudo pip install -U platformio
  60. script:
  61. # Arduino IDE
  62. - arduino --verify --board arduino:avr:uno ${ARDUINOIDE_CI_SRC}
  63. # PlatformIO
  64. - platformio ci --lib="." ${BOARDS}