Debian Codegraph @

t/ci.lisp

raw
1 ;;;; ci.lisp --- CI Script
2
3 ;;; Copyright (C) 2013 Kan-Ru Chen (陳侃如)
4
5 ;;; Author(s): Kan-Ru Chen (陳侃如) <[email protected]>
6
7 ;;; Permission is hereby granted, free of charge, to any person obtaining a
8 ;;; copy of this software and associated documentation files (the "Software"),
9 ;;; to deal in the Software without restriction, including without limitation
10 ;;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 ;;; and/or sell copies of the Software, and to permit persons to whom the
12 ;;; Software is furnished to do so, subject to the following conditions:
13
14 ;;; The above copyright notice and this permission notice shall be included in
15 ;;; all copies or substantial portions of the Software.
16
17 ;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 ;;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 ;;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 ;;; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 ;;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 ;;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 ;;; DEALINGS IN THE SOFTWARE.
24
25 ;;;; Commentary:
26
27 ;;;
28
29 ;;;; Code:
30
31 (in-package :cl-user)
32 (defpackage :mustache-test-ci
33 (:use :cl))
34 (in-package :mustache-test-ci)
35
36 (defun exit (code)
37 (let ((exit (find-symbol #.(string :exit) :sb-ext))
38 (quit (find-symbol #.(string :quit) :sb-ext)))
39 (cond
40 (exit (funcall exit :code code))
41 (quit (funcall quit :unix-status code))
42 (t (error "No exit or quit function")))))
43
44 (ql:quickload :prove)
45 (ql:quickload :cl-mustache)
46
47 (unless (and (prove:run #P"t/test-api")
48 (prove:run #P"t/test-spec"))
49 (exit -1))
50
51 ;;; ci.lisp ends here
52
53 ;;; Local Variables:
54 ;;; mode: lisp
55 ;;; End: