Change Emacs installation method for Travis CI

* .travis.yml: Don't use sudo, submodules.
(env): Test with additional Emacs versions.
(install): Get Emacs binaries from
https://github.com/npostavs/emacs-travis/releases.  Download ert and
cl-lib if needed.
(script): Split compilation and testing into separate steps.
* Rakefile: Use batch-byte-compile.  Treat compilation warnings as
errors.
This commit is contained in:
Noam Postavsky
2016-04-24 17:29:05 -04:00
parent 567ada01e6
commit 7f03a2319e
2 changed files with 22 additions and 17 deletions

View File

@@ -94,7 +94,8 @@ end
desc "Compile yasnippet.el into yasnippet.elc"
rule '.elc' => '.el' do |t|
sh "#{$EMACS} --batch -L . --eval \"(byte-compile-file \\\"#{t.source}\\\")\""
sh "#{$EMACS} --batch -L . --eval \"(setq byte-compile-error-on-warn t)\"" +
" -f batch-byte-compile #{t.source}"
end
task :compile => FileList["yasnippet.el"].ext('elc')