Skip to content

Commit 6be5610

Browse files
committed
Add travis script
1 parent cb65ff9 commit 6be5610

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
sudo: false
2+
3+
language: bash
4+
5+
os:
6+
- linux
7+
8+
before_install:
9+
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
10+
11+
before_script:
12+
- "export DISPLAY=:99.0"
13+
- sleep 3 # give xvfb some time to start
14+
- wget http://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz
15+
- tar xf arduino-1.6.5-linux64.tar.xz
16+
- mv arduino-1.6.5 $HOME/arduino_ide
17+
- cd $HOME/arduino_ide/hardware
18+
- mkdir esp8266com
19+
- cd esp8266com
20+
- git clone https://github.com/esp8266/Arduino.git esp8266
21+
- cd esp8266/tools
22+
- python get.py
23+
24+
script:
25+
- cd $TRAVIS_BUILD_DIR
26+
- export PATH="$HOME/arduino_ide:$PATH"
27+
- arduino --board esp8266com:esp8266:generic --save-prefs
28+
- arduino --get-pref sketchbook.path
29+
- build_sketch esp8266/esp8266.ino
30+
31+
notifications:
32+
email:
33+
on_success: change
34+
on_failure: change

0 commit comments

Comments
 (0)