branch: elpa/evil-goggles
commit bb49e3a0013597272175683e4bd5f7e7bfc4b97d
Author: Evgeni Kolev <[email protected]>
Commit: Evgeni Kolev <[email protected]>
Make travis catch compilation warnings
---
.travis.yml | 1 +
test/make-compile.el | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 4d9b382f4e..73853ab93e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,4 +12,5 @@ before_install:
script:
- make update
+ - make compile
- make test
diff --git a/test/make-compile.el b/test/make-compile.el
index ec336d17d0..e285a109ed 100644
--- a/test/make-compile.el
+++ b/test/make-compile.el
@@ -1,5 +1,9 @@
(setq files '("evil-goggles.el"))
+(setq byte-compile-error-on-warn t)
(setq byte-compile--use-old-handlers nil)
-(mapc #'byte-compile-file files)
+(mapc (lambda (file)
+ (unless (byte-compile-file file)
+ (kill-emacs 1)))
+ files)