-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (52 loc) · 2.67 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
44
45
46
47
48
49
50
51
52
53
54
55
language: generic
teensy: &teensy
env:
- ARDUINO_IDE_VERSION="1.8.11"
- DISPLAY=:1.0
- TEENSYDUINO_VERSION=153
install:
# Install Arduino
- wget --quiet https://downloads.arduino.cc/arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz
- mkdir $HOME/arduino_ide
- tar xf arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz -C $HOME/arduino_ide/
# Install Teensyduino
- curl -fsSL https://www.pjrc.com/teensy/td_$TEENSYDUINO_VERSION/TeensyduinoInstall.linux64 -o TeensyduinoInstall.linux64
- chmod +x TeensyduinoInstall.linux64
- /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
- ./TeensyduinoInstall.linux64 --dir=$HOME/arduino_ide/arduino-$ARDUINO_IDE_VERSION
# Install libaries
- $HOME/arduino_ide/arduino-$ARDUINO_IDE_VERSION/arduino --install-library "Bounce2"
- $HOME/arduino_ide/arduino-$ARDUINO_IDE_VERSION/arduino --install-library "LedControl"
before_script:
# Replace standard teensy headers with our custom ones
- cp -rf ControlPanel/Build/Arduino/* $HOME/arduino_ide/*
script:
- $HOME/arduino_ide/arduino-$ARDUINO_IDE_VERSION/arduino --verbose --board "teensy:avr:teensy40:usb=kbrawhid,speed=600,opt=o2std,keys=en-us" --verify ControlPanel/ControlPanel.ino
promicro8: &promicro8
env:
- SPARKFUN_BOARDS_URL="https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json"
install:
# Install Arduino
- mkdir $HOME/arduino_ide
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=$HOME/arduino_ide sh
# Install Sparkfun avr boards (also install the standard arduino boards as arduino-cli doesn't do that by default)
- $HOME/arduino_ide/arduino-cli core --additional-urls $SPARKFUN_BOARDS_URL install arduino:avr
- $HOME/arduino_ide/arduino-cli core --additional-urls $SPARKFUN_BOARDS_URL install SparkFun:avr
# Install needed libraries
- $HOME/arduino_ide/arduino-cli lib install "Bounce2"
- $HOME/arduino_ide/arduino-cli lib install "HID-Project"
- $HOME/arduino_ide/arduino-cli lib install "ArxContainer"
- $HOME/arduino_ide/arduino-cli lib install "LedControl"
script:
- $HOME/arduino_ide/arduino-cli compile -b SparkFun:avr:promicro:cpu=8MHzatmega32U4 --build-property compiler.cpp.extra_flags=$DEVICE_CONFIG ControlPanel/ControlPanel.ino
jobs:
include:
- name: Teensyduino 4.0
env:
- DEVICE_CONFIG=-DELITEDUINO_DEVICE_TEENSY_BUTTONSANDSCREEN
<<: *teensy
- name: Pro micro 8Mhz
env:
- DEVICE_CONFIG=-DELITEDUINO_DEVICE_PROMICRO_16BUTTONSONLY
<<: *promicro8