emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/system-packages 2e9c031 065/117: Setup travis to error


From: Stefan Monnier
Subject: [elpa] externals/system-packages 2e9c031 065/117: Setup travis to error on byte compiler warnings
Date: Fri, 14 Dec 2018 17:02:10 -0500 (EST)

branch: externals/system-packages
commit 2e9c03198158dbdce5bd929f3caecf9bac512a81
Author: Alex Branham <address@hidden>
Commit: Alex Branham <address@hidden>

    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))" $<



reply via email to

[Prev in Thread] Current Thread [Next in Thread]