X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/f6920eeb4d23ec582c6d1bb7707cb120d3640883..8cec2263db753122a414fdf9156ac523dfc38bcd:/packages/yasnippet/Rakefile diff --git a/packages/yasnippet/Rakefile b/packages/yasnippet/Rakefile index 1bf00457d..d1332181a 100644 --- a/packages/yasnippet/Rakefile +++ b/packages/yasnippet/Rakefile @@ -2,6 +2,8 @@ require 'fileutils' +$EMACS=ENV["EMACS"] || "emacs" + def find_version File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/ $version = $1 @@ -9,6 +11,10 @@ end find_version FileUtils.mkdir_p('pkg') +desc "run tests in batch mode" +task :tests do + sh "#{$EMACS} -Q -L . -l yasnippet-tests.el -nw --batch -e yas/ert" +end desc "convert some textmate bundles to yasnippets" task :convert_bundles do @@ -82,7 +88,7 @@ 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 \"(byte-compile-file \\\"#{t.source}\\\")\"" end task :compile => FileList["yasnippet.el", "dropdown-list.el"].ext('elc')