mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
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:
3
Rakefile
3
Rakefile
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user