diff --git a/.travis.yml b/.travis.yml index 7b007da..b43d358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ install: - export PATH=/tmp/emacs/bin:${PATH} - if ! emacs -Q --batch --eval "(require 'cl-lib)" ; then curl -Lo cl-lib.el http://elpa.gnu.org/packages/cl-lib-0.5.el ; + export warnings="'(not cl-functions)" ; fi - if ! emacs -Q --batch --eval "(require 'ert)" ; then curl -LO https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el && diff --git a/Rakefile b/Rakefile index f88237b..df4bb7f 100644 --- a/Rakefile +++ b/Rakefile @@ -99,6 +99,7 @@ desc "Compile yasnippet.el into yasnippet.elc" rule '.elc' => '.el' do |t| sh "#{$EMACS} --batch -L . --eval \"(setq byte-compile-error-on-warn t)\"" + + " --eval \"(setq byte-compile-warnings #{ENV['warnings']})\"" + " -f batch-byte-compile #{t.source}" end task :compile => FileList["yasnippet.el"].ext('elc')