]> code.delx.au - gnu-emacs-elpa/blobdiff - Rakefile
Add Travis CI and update tests. Start a Changelog.
[gnu-emacs-elpa] / Rakefile
index 3f94a9a499f402368fac30aaaf6e0ad5c452c99b..2965eb9d5ba5a7699cb4a23e34901a26a8b406c4 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -2,7 +2,10 @@
 
 require 'fileutils'
 
-$EMACS=ENV["EMACS"] || "emacs"
+$EMACS = ENV["EMACS"]
+if not $EMACS or $EMACS == 't'
+  $EMACS = "emacs"
+end
 
 def find_version
   File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/
@@ -13,9 +16,8 @@ FileUtils.mkdir_p('pkg')
 
 desc "run tests in batch mode"
 task :tests do
-  batch_run_line = "(yas-batch-run-tests t)"
-  sh "#{$EMACS} -Q -L . -l yasnippet-tests.el -nw" +
-    " --batch --eval '#{batch_run_line}'"
+  sh "#{$EMACS} -Q -L . -l yasnippet-tests.el" +
+    " --batch -f ert-run-tests-batch-and-exit"
 end
 
 desc "create a release package"