New build infrastructure

pull/389/head
Jesse Vincent 8 years ago
parent 647e15a4bc
commit 8e3f0ac20e
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -1,18 +1,21 @@
language: cpp
dist: trusty dist: trusty
sudo: required sudo: false
os: os:
- linux - linux
before_install:
- pushd ..
- wget http://downloads.arduino.cc/arduino-1.6.11-linux64.tar.xz
- tar xf arduino-1.6.11-linux64.tar.xz
- popd
install: install:
- git clone --recurse-submodules https://github.com/keyboardio/Arduino-Boards hardware/keyboardio/avr - git clone --depth 1 --recurse-submodules https://github.com/keyboardio/Arduino-Boards hardware/keyboardio/avr
script: script:
- export DEFAULT_SKETCH=$(cd examples; basename *) - make travis-test BOARD_HARDWARE_PATH=$(pwd)/hardware
- export ARDUINO_PATH=$(pwd)/../arduino-1.6.11 notifications:
- export BOARD_HARDWARE_PATH=$(pwd)/hardware irc:
- export EXTRA_BUILDER_ARGS="-libraries ." channels:
- hardware/keyboardio/avr/libraries/Kaleidoscope/tools/kaleidoscope-builder build - "chat.freenode.net#keyboardio"
use_notice: true
skip_join: true
template:
- "%{repository_name}/%{branch} %{commit} by %{author}: %{commit_subject} %{build_url} %{message}"
email:
on_success: change
on_failure: change
cache:
ccache: true

@ -0,0 +1,12 @@
# This stub makefile for a Kaleidoscope plugin pulls in
# all targets from the Kaleidoscope-Plugin library
MAKEFILE_PREFIX=keyboardio/avr/libraries/Kaleidoscope-Plugin/build
UNAME_S := $(shell uname -s)
BOARD_HARDWARE_PATH ?= $(HOME)/Arduino/hardware
ifeq ($(UNAME_S),Darwin)
BOARD_HARDWARE_PATH ?= $(HOME)/Library/Arduino/hardware
endif
include $(BOARD_HARDWARE_PATH)/$(MAKEFILE_PREFIX)/*.mk
Loading…
Cancel
Save