Add Travis CI configuration.
authorOlof-Joachim Frahm <olof@macrolet.net>
Mon, 5 Jan 2015 23:25:37 +0000 (23:25 +0000)
committerOlof-Joachim Frahm <olof@macrolet.net>
Tue, 6 Jan 2015 20:29:05 +0000 (20:29 +0000)
.travis.yml [new file with mode: 0644]
README.md

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..12f7473
--- /dev/null
@@ -0,0 +1,37 @@
+language: lisp
+
+env:
+  matrix:
+    - LISP=abcl
+    - LISP=allegro
+    - LISP=sbcl
+    - LISP=sbcl32
+    - LISP=ccl
+    - LISP=ccl32
+    - LISP=clisp
+    - LISP=clisp32
+    - LISP=cmucl
+    - LISP=ecl
+
+matrix:
+  allow_failures:
+    # CIM not available for CMUCL
+    - env: LISP=cmucl
+    # optima fails for ecl
+    - env: LISP=ecl
+
+install:
+  - curl https://raw.githubusercontent.com/luismbo/cl-travis/master/install.sh | sh
+
+script:
+  # work around fiveam
+  - cl -e '(ql:quickload :cl-mock-tests-basic)
+           (unless (let ((results (fiveam:run (find-symbol "CL-MOCK" "CL-MOCK-TESTS"))))
+                     (fiveam:explain! results)
+                     (notany (function fiveam::test-failure-p) results))
+             (uiop:quit 1))'
+  - cl -e '(ql:quickload :cl-mock-tests)
+           (unless (let ((results (fiveam:run (find-symbol "CL-MOCK" "CL-MOCK-TESTS"))))
+                     (fiveam:explain! results)
+                     (notany (function fiveam::test-failure-p) results))
+             (uiop:quit 1))'
index 718ee99..65776aa 100644 (file)
--- a/README.md
+++ b/README.md
@@ -10,6 +10,8 @@ Working, but unfinished.
 
 Should be portable.
 
+[![Build Status](https://travis-ci.org/Ferada/cl-mock.svg?branch=master)](https://travis-ci.org/Ferada/cl-mock)
+
 
 # INTRODUCTION