-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
43 lines (37 loc) · 1.71 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: cpp
env:
global:
- ARDUINO_VERSION="1.8.5"
matrix:
- BOARD="esp8266:esp8266:generic" FLAGS=':xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K'
- BOARD="esp32:esp32:esp32" FLAGS=''
before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
- sleep 3
- export DISPLAY=:1.0
- wget http://downloads.arduino.cc/arduino-$(eval echo $ARDUINO_VERSION)-linux64.tar.xz
- tar xf arduino-$(eval echo $ARDUINO_VERSION)-linux64.tar.xz
- sudo mv arduino-$(eval echo $ARDUINO_VERSION) /usr/local/share/arduino
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
- mkdir build
install:
- if [[ "$BOARD" =~ "esp8266:esp8266:" ]]; then
arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs;
arduino --install-boards esp8266:esp8266 > /dev/null;
arduino --board esp8266:esp8266:generic --save-prefs;
fi
- if [[ "$BOARD" =~ "esp32:esp32:" ]]; then
arduino --pref "boardsmanager.additional.urls=https://dl.espressif.com/dl/package_esp32_index.json" --save-prefs;
arduino --install-boards esp32:esp32 > /dev/null;
arduino --board esp32:esp32:esp32 --save-prefs;
fi
- ln -s $PWD /usr/local/share/arduino/libraries/Koyn
before_script:
- arduino --pref build.path=$PWD/build --board $BOARD$FLAGS --save-prefs
script:
- for example in $PWD/examples/*/*.ino; do arduino --verify $example; done;
# - find $PWD/examples -type f -name "*.ino" -exec arduino --verify {} \;
notifications:
email:
on_success: change
on_failure: change