From 559994826accc35d91510547d939a7b6ac7cdec2 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 23 May 2017 12:09:42 -0700 Subject: [PATCH] First pass at simpler travis infrastructure --- .travis.yml | 8 ++------ Makefile | 11 +++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 Makefile diff --git a/.travis.yml b/.travis.yml index 77431b24..02319c75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,15 +4,11 @@ sudo: required os: - 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: - git clone --recurse-submodules https://github.com/keyboardio/Arduino-Boards hardware/keyboardio/avr script: - - export DEFAULT_SKETCH=$(cd examples; basename *) - - export ARDUINO_PATH=$(pwd)/../arduino-1.6.11 + - export ARDUINO_PATH=$(pwd)/arduino-1.6.11 - export BOARD_HARDWARE_PATH=$(pwd)/hardware - - export EXTRA_BUILDER_ARGS="-libraries ." - - hardware/keyboardio/avr/libraries/Kaleidoscope/tools/kaleidoscope-builder build + - make build-all diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..b028065c --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +# This stub makefile for a Kaleidoscope plugin pulls in +# all targets from the Kaleidoscope-Plugin library + +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)/keyboardio/avr/libraries/Kaleidoscope-Plugin/build/*.mk