Skip to content

Commit 3ca0e43

Browse files
Merge pull request #84 from lyusupov/Travis_CI
Travis CI script
2 parents 7dcfe06 + e8f7bce commit 3ca0e43

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Heltec ASR650x Series Arduino Develop Environment
1+
# Heltec ASR650x Series Arduino Development Environment
22

3-
English | [简体中文](#简体中文)
3+
English | [简体中文](#简体中文)    [![Build Status](https://travis-ci.org/HelTecAutomation/ASR650x-Arduino.png?branch=master)](https://travis-ci.org/HelTecAutomation/ASR650x-Arduino "Build Status")
44

55
This project makes ASR650x (ASR6501, ASR6502) series fully Arduino-Compatible. For [Heltec](https://heltec.org/) [CubeCell](https://heltec.org/proudct_center/lora/cubecell/) series.
66

0 commit comments

Comments
 (0)