Pārlūkot izejas kodu

Initial switch to prove, travis and quicklisp badges.

Brit Butler 9 gadi atpakaļ
vecāks
revīzija
64c917b53f
5 mainītis faili ar 46 papildinājumiem un 13 dzēšanām
  1. 1 0
      .gitignore
  2. 22 0
      .travis.yml
  3. 3 0
      README.md
  4. 9 13
      coleslaw.asd
  5. 11 0
      tests/tests.lisp

+ 1 - 0
.gitignore

@@ -5,3 +5,4 @@ ignore/
5 5
 generated/
6 6
 .curr
7 7
 .prev
8
+build/

+ 22 - 0
.travis.yml

@@ -0,0 +1,22 @@
1
+language: common-lisp
2
+sudo: false
3
+
4
+env:
5
+  global:
6
+    - PATH=~/.roswell/bin:$PATH
7
+    - ROSWELL_INSTALL_DIR=$HOME/.roswell
8
+  matrix:
9
+    - LISP=sbcl-bin
10
+    - LISP=ccl-bin
11
+
12
+install:
13
+  - curl -L https://raw.githubusercontent.com/snmsts/roswell/release/scripts/install-for-ci.sh | sh
14
+  - ros install prove
15
+
16
+cache:
17
+  directories:
18
+    - $HOME/.roswell
19
+    - $HOME/.config/common-lisp
20
+
21
+script:
22
+  - run-prove coleslaw-test.asd

+ 3 - 0
README.md

@@ -1,5 +1,8 @@
1 1
 # coleslaw
2 2
 
3
+[![Build Status](https://travis-ci.org/kingcons/coleslaw.svg?branch=master)](https://travis-ci.org/kingcons/coleslaw)
4
+[![Quicklisp](http://quickdocs.org/badge/<project name>.svg)](http://quickdocs.org/<project name>/)
5
+
3 6
 <img src="https://raw.github.com/redline6561/coleslaw/master/themes/hyde/css/logo_medium.jpg" alt="coleslaw logo" align="right"/>
4 7
 
5 8
 > [Czeslaw Milosz](http://blog.redlinernotes.com/tag/milosz.html) was the writer-in-residence at UNC c. 1992.

+ 9 - 13
coleslaw.asd

@@ -26,23 +26,19 @@
26 26
                (:file "indexes")
27 27
                (:file "feeds")
28 28
                (:file "coleslaw"))
29
-  :in-order-to ((test-op (load-op coleslaw-tests)))
30
-  :perform (test-op :after (op c)
31
-                    (funcall (intern "RUN!" :coleslaw-tests)
32
-                             (intern "COLESLAW-TESTS" :coleslaw-tests))))
29
+  :in-order-to ((test-op (test-op coleslaw-test))))
33 30
 
34
-(defsystem #:coleslaw-tests
31
+(defsystem #:coleslaw-test
35 32
   :description "A test suite for coleslaw."
36 33
   :license "BSD"
37 34
   :author "Brit Butler <redline6561@gmail.com>"
38
-  :depends-on (coleslaw stefil)
39
-  :pathname "tests/"
40
-  :serial t
41
-  :components ())
42
-
43
-(defmethod operation-done-p ((op test-op)
44
-                             (c (eql (find-system :coleslaw))))
45
-  (values nil))
35
+  :depends-on (:coleslaw :prove)
36
+  :defsystem-depends-on (:prove-asdf)
37
+  :components ((:module "tests"
38
+                :components
39
+                        ((:test-file "tests"))))
40
+  :perform (test-op :after (op c)
41
+                    (funcall (intern #.(string :run) :prove) c)))
46 42
 
47 43
 (defpackage #:coleslaw-conf (:export #:*basedir*))
48 44
 (defparameter coleslaw-conf:*basedir*

+ 11 - 0
tests/tests.lisp

@@ -0,0 +1,11 @@
1
+(defpackage :coleslaw-tests
2
+  (:use :cl :prove))
3
+
4
+(in-package :coleslaw-tests)
5
+
6
+(plan nil)
7
+
8
+(deftest 1-is-a-number
9
+  (is-type 1 'fixnum))
10
+
11
+(finalize)