Browse files

Setup for running the tests on Travis-CI

Change the test run itself from:
    (ert-run-tests-batch t)
to:
    (ert-run-tests-batch-and-exit t)
so that failed tests give a failure status out of running Emacs.
This allows Travis to notice failures.

Add "--create" into .rvmrc, mostly for convenience. I'm not at all
sure Travis cares.
  • Loading branch information...
1 parent cab0a23 commit c20bc3ecdc2b11da0c037ccb2250802ebb65eebd @bruceadams bruceadams committed Dec 2, 2012
Showing with 7 additions and 2 deletions.
  1. +5 −0 .travis.yml
  2. +1 −1 tests/.rvmrc
  3. +1 −1 tests/rvm-tests
View
5 .travis.yml
@@ -0,0 +1,5 @@
+language: ruby
+rvm: 1.9.3
+
+# This boldly assumes that "emacs" is installed on the Travis build slave.
+script: emacs --script tests/rvm-tests
View
2 tests/.rvmrc
@@ -1 +1 @@
-rvm ruby-1.9.2-head@rails3
+rvm --create ruby-1.9.2-head@rails3
View
2 tests/rvm-tests
@@ -13,4 +13,4 @@
(dolist (test-file (or argv (directory-files rvm-test-path t "-tests.el$")))
(load test-file nil t))
-(ert-run-tests-batch t)
+(ert-run-tests-batch-and-exit t)

0 comments on commit c20bc3e

Please sign in to comment.