branch: externals/system-packages commit 2e9c03198158dbdce5bd929f3caecf9bac512a81 Author: Alex Branham <bran...@utexas.edu> Commit: Alex Branham <bran...@utexas.edu>
Setup travis to error on byte compiler warnings --- .travis.yml | 12 ++++++++++++ Makefile | 15 +++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b7d5af6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: generic + +sudo: enabled + +before_install: + - sudo apt-get -qq update + - sudo apt-get install -y emacs + +script: + - emacs --version + - make + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bfee9c4 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +EMACS ?= emacs +EMACS_FLAGS = --quick --directory . +EMACS_BATCH = $(EMACS) --batch $(EMACS_FLAGS) + +EL := $(wildcard *.el) +ELC := $(patsubst %.el,%.elc,$(EL)) + +.PHONY: all +all: compile + +.PHONY: compile +compile: $(ELC) + +%.elc: %.el + $(EMACS_BATCH) --eval "(progn (setq byte-compile-error-on-warn t) (batch-byte-compile))" $<