|
| 1 | +language: c |
| 2 | +env: |
| 3 | + global: |
| 4 | + - ARDUINO_IDE_VERSION=1.8.5 |
| 5 | + matrix: |
| 6 | + - BOARD=CubeCell:CubeCell:CubeCell-Module |
| 7 | +before_install: |
| 8 | + - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16" |
| 9 | + - sleep 3 |
| 10 | + - export DISPLAY=:1.0 |
| 11 | + - wget http://downloads.arduino.cc/arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz ; |
| 12 | + - tar xf arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz ; |
| 13 | + - rm arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz ; |
| 14 | + - sudo mv arduino-$ARDUINO_IDE_VERSION /usr/local/share/arduino ; |
| 15 | + - sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino ; |
| 16 | +install: |
| 17 | + - if [[ "$BOARD" =~ "CubeCell:CubeCell:" ]]; then |
| 18 | + arduino --pref "boardsmanager.additional.urls=http://resource.heltec.cn/download/package_CubeCell_index.json" --save-prefs ; |
| 19 | + arduino --install-boards CubeCell:CubeCell ; |
| 20 | + arduino --board $BOARD --save-prefs ; |
| 21 | + arduino --pref "custom_LORAWAN_ADR=CubeCell-Module_1" --save-prefs ; |
| 22 | + arduino --pref "custom_LORAWAN_AT_SUPPORT=CubeCell-Module_1" --save-prefs ; |
| 23 | + arduino --pref "custom_LORAWAN_CLASS=CubeCell-Module_0" --save-prefs ; |
| 24 | + arduino --pref "custom_LORAWAN_DebugLevel=CubeCell-Module_0" --save-prefs ; |
| 25 | + arduino --pref "custom_LORAWAN_NETMODE=CubeCell-Module_1" --save-prefs ; |
| 26 | + arduino --pref "custom_LORAWAN_Net_Reserve=CubeCell-Module_0" --save-prefs ; |
| 27 | + arduino --pref "custom_LORAWAN_REGION=CubeCell-Module_868EU" --save-prefs ; |
| 28 | + arduino --pref "custom_LORAWAN_RGB=CubeCell-Module_0" --save-prefs ; |
| 29 | + arduino --pref "custom_LORAWAN_UPLINKMODE=CubeCell-Module_0" --save-prefs ; |
| 30 | + cd $TRAVIS_BUILD_DIR ; |
| 31 | + fi |
| 32 | + |
| 33 | +script: |
| 34 | + - if [[ "$BOARD" =~ "CubeCell:CubeCell:" ]]; then |
| 35 | + arduino --verify --verbose-build --board $BOARD $PWD/libraries/LoRa/examples/LoRaWAN/LoRaWan/LoRaWan.ino ; |
| 36 | + fi ; |
| 37 | + |
| 38 | +notifications: |
| 39 | + email: |
| 40 | + on_success: change |
| 41 | + on_failure: change |
0 commit comments