Skip to content

Commit 49cf89b

Browse files
authored
Travis CI (#5)
1 parent 441d3d8 commit 49cf89b

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

.travis.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
language: C
2+
env:
3+
global:
4+
- IDE_VERSION=1.8.1
5+
- IDE_LOCATION=/usr/local/share/arduino
6+
- BOARDS_DESTINATION=$IDE_LOCATION/hardware
7+
8+
matrix:
9+
include:
10+
- name: "Blank Sketch"
11+
env: SKETCH="$IDE_LOCATION/examples/01.Basics/BareMinimum/BareMinimum.ino"
12+
- name: "USB API Demo"
13+
env: SKETCH="$IDE_LOCATION/libraries/ArduinoXInput/extras/API-Demo/API-Demo.ino"
14+
- name: "XInput Library"
15+
env: SKETCH="$IDE_LOCATION/libraries/ArduinoXInput/examples/GamepadPins/GamepadPins.ino"
16+
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+
22+
# Install Arduino IDE
23+
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
24+
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
25+
- sudo mv arduino-$IDE_VERSION $IDE_LOCATION
26+
- sudo ln -s $IDE_LOCATION/arduino /usr/local/bin/arduino
27+
- rm arduino-$IDE_VERSION-linux64.tar.xz
28+
29+
# Install XInput Library
30+
- if [[ $SKETCH == *"ArduinoXInput"* ]]; then
31+
git clone https://github.com/dmadison/ArduinoXInput.git;
32+
mv ArduinoXInput $IDE_LOCATION/libraries;
33+
fi
34+
35+
# Sketch Compiling Functions
36+
- CYAN="\033[36m"; NOC="\033[0m";
37+
- buildSketch() {
38+
echo -e "\n${CYAN}Building sketch ${SKETCH##*/} for $BOARD${NOC}";
39+
arduino --verify --board $BOARD "$SKETCH";
40+
}
41+
42+
install:
43+
- mkdir $BOARDS_DESTINATION/xinput
44+
- ln -s $PWD $BOARDS_DESTINATION/xinput/avr
45+
46+
script:
47+
# Arduino Yún w/ XInput
48+
- BOARD=xinput:avr:yun; buildSketch;
49+
50+
# Arduino Leonardo w/ XInput
51+
- BOARD=xinput:avr:leonardo; buildSketch;
52+
53+
# Arduino Arduino Leonardo ETH w/ XInput
54+
- BOARD=xinput:avr:leonardoeth; buildSketch;
55+
56+
# Arduino/Genuino Micro w/ XInput
57+
- BOARD=xinput:avr:micro; buildSketch;
58+
59+
# Arduino Esplora w/ XInput
60+
- BOARD=xinput:avr:esplora; buildSketch;
61+
62+
# LilyPad Arduino USB w/ XInput
63+
- BOARD=xinput:avr:LilyPadUSB; buildSketch;
64+
65+
# Arduino Robot Control w/ XInput
66+
- BOARD=xinput:avr:robotControl; buildSketch;
67+
68+
# Arduino Arduino Robot Motor w/ XInput
69+
- BOARD=xinput:avr:robotMotor; buildSketch;
70+
71+
# Adafruit Circuit Playground 32u4 w/Caterina Configuration w/ XInput
72+
- BOARD=xinput:avr:circuitplay32u4cat; buildSketch;
73+
74+
# Arduino Yún Mini w/ XInput
75+
- BOARD=xinput:avr:yunmini; buildSketch;
76+
77+
# Arduino Industrial 101 w/ XInput
78+
- BOARD=xinput:avr:chiwawa; buildSketch;
79+
80+
# Linino One w/ XInput
81+
- BOARD=xinput:avr:one; buildSketch;
82+
83+
notifications:
84+
email:
85+
on_success: change
86+
on_failure: change

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# XInput USB Core for Arduino AVR
2+
[![Build Status](https://travis-ci.org/dmadison/ArduinoXInput_AVR.svg?branch=master)](https://travis-ci.org/dmadison/ArduinoXInput_AVR)
23

34
The files in this repository allow you to emulate an Xbox gamepad (XInput) using a USB-capable Arduino microcontroller. Originally forked from [the official Arduino AVR core](https://github.com/arduino/ArduinoCore-avr).
45

0 commit comments

Comments
 (0)