能源管控程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
2.1 KiB

  1. language: generic
  2. env:
  3. global:
  4. - IDE_VERSION=1.8.13
  5. matrix:
  6. - EXAMPLE="AdafruitHuzzahESP8266" BOARD="esp8266:esp8266:huzzah:eesz=4M3M,xtal=80"
  7. - EXAMPLE="AdafruitHuzzahESP8266Secure" BOARD="esp8266:esp8266:huzzah:eesz=4M3M,xtal=80"
  8. - EXAMPLE="ArduinoEthernetShield" BOARD="arduino:avr:uno"
  9. - EXAMPLE="ArduinoMKRGSM1400" BOARD="arduino:samd:mkrgsm1400"
  10. - EXAMPLE="ArduinoMKRGSM1400Secure" BOARD="arduino:samd:mkrgsm1400"
  11. - EXAMPLE="ArduinoWiFi101Secure" BOARD="arduino:avr:uno"
  12. - EXAMPLE="ArduinoWiFiShield" BOARD="arduino:avr:uno"
  13. - EXAMPLE="ArduinoYun" BOARD="arduino:avr:yun"
  14. - EXAMPLE="ArduinoYunSecure" BOARD="arduino:avr:yun"
  15. - EXAMPLE="ESP32DevelopmentBoard" BOARD="espressif:esp32:esp32:FlashFreq=80"
  16. - EXAMPLE="ESP32DevelopmentBoardSecure" BOARD="espressif:esp32:esp32:FlashFreq=80"
  17. before_install:
  18. - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
  19. - sleep 3
  20. - export DISPLAY=:1.0
  21. - wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
  22. - tar xf arduino-$IDE_VERSION-linux64.tar.xz
  23. - mv arduino-$IDE_VERSION ~/arduino-ide
  24. - export PATH=$PATH:~/arduino-ide
  25. - if [[ "$BOARD" =~ "esp8266:esp8266:" ]]; then
  26. arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --install-boards esp8266:esp8266;
  27. arduino --pref "boardsmanager.additional.urls=" --save-prefs;
  28. fi
  29. - if [[ "$BOARD" =~ "espressif:esp32:" ]]; then
  30. mkdir -p ~/Arduino/hardware/espressif &&
  31. cd ~/Arduino/hardware/espressif &&
  32. git clone https://github.com/espressif/arduino-esp32.git esp32 &&
  33. cd esp32/tools/ &&
  34. python get.py &&
  35. cd $TRAVIS_BUILD_DIR;
  36. fi
  37. - if [[ "$BOARD" =~ "arduino:samd:mkrgsm1400" ]]; then
  38. arduino --install-boards arduino:samd;
  39. arduino --install-library MKRGSM;
  40. fi
  41. - arduino --install-library WiFi101
  42. install:
  43. - mkdir -p ~/Arduino/libraries
  44. - ln -s $PWD ~/Arduino/libraries/.
  45. script:
  46. - arduino --verbose-build --verify --board $BOARD $PWD/examples/$EXAMPLE/$EXAMPLE.ino;