Initial switch to prove, travis and quicklisp badges.
This commit is contained in:
parent
5f3100604c
commit
64c917b53f
5 changed files with 46 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ ignore/
|
|||
generated/
|
||||
.curr
|
||||
.prev
|
||||
build/
|
||||
|
|
22
.travis.yml
Normal file
22
.travis.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
language: common-lisp
|
||||
sudo: false
|
||||
|
||||
env:
|
||||
global:
|
||||
- PATH=~/.roswell/bin:$PATH
|
||||
- ROSWELL_INSTALL_DIR=$HOME/.roswell
|
||||
matrix:
|
||||
- LISP=sbcl-bin
|
||||
- LISP=ccl-bin
|
||||
|
||||
install:
|
||||
- curl -L https://raw.githubusercontent.com/snmsts/roswell/release/scripts/install-for-ci.sh | sh
|
||||
- ros install prove
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.roswell
|
||||
- $HOME/.config/common-lisp
|
||||
|
||||
script:
|
||||
- run-prove coleslaw-test.asd
|
|
@ -1,5 +1,8 @@
|
|||
# coleslaw
|
||||
|
||||
[](https://travis-ci.org/kingcons/coleslaw)
|
||||
[](http://quickdocs.org/<project name>/)
|
||||
|
||||
<img src="https://raw.github.com/redline6561/coleslaw/master/themes/hyde/css/logo_medium.jpg" alt="coleslaw logo" align="right"/>
|
||||
|
||||
> [Czeslaw Milosz](http://blog.redlinernotes.com/tag/milosz.html) was the writer-in-residence at UNC c. 1992.
|
||||
|
|
22
coleslaw.asd
22
coleslaw.asd
|
@ -26,23 +26,19 @@
|
|||
(:file "indexes")
|
||||
(:file "feeds")
|
||||
(:file "coleslaw"))
|
||||
:in-order-to ((test-op (load-op coleslaw-tests)))
|
||||
:perform (test-op :after (op c)
|
||||
(funcall (intern "RUN!" :coleslaw-tests)
|
||||
(intern "COLESLAW-TESTS" :coleslaw-tests))))
|
||||
:in-order-to ((test-op (test-op coleslaw-test))))
|
||||
|
||||
(defsystem #:coleslaw-tests
|
||||
(defsystem #:coleslaw-test
|
||||
:description "A test suite for coleslaw."
|
||||
:license "BSD"
|
||||
:author "Brit Butler <redline6561@gmail.com>"
|
||||
:depends-on (coleslaw stefil)
|
||||
:pathname "tests/"
|
||||
:serial t
|
||||
:components ())
|
||||
|
||||
(defmethod operation-done-p ((op test-op)
|
||||
(c (eql (find-system :coleslaw))))
|
||||
(values nil))
|
||||
:depends-on (:coleslaw :prove)
|
||||
:defsystem-depends-on (:prove-asdf)
|
||||
:components ((:module "tests"
|
||||
:components
|
||||
((:test-file "tests"))))
|
||||
:perform (test-op :after (op c)
|
||||
(funcall (intern #.(string :run) :prove) c)))
|
||||
|
||||
(defpackage #:coleslaw-conf (:export #:*basedir*))
|
||||
(defparameter coleslaw-conf:*basedir*
|
||||
|
|
11
tests/tests.lisp
Normal file
11
tests/tests.lisp
Normal file
|
@ -0,0 +1,11 @@
|
|||
(defpackage :coleslaw-tests
|
||||
(:use :cl :prove))
|
||||
|
||||
(in-package :coleslaw-tests)
|
||||
|
||||
(plan nil)
|
||||
|
||||
(deftest 1-is-a-number
|
||||
(is-type 1 'fixnum))
|
||||
|
||||
(finalize)
|
Loading…
Add table
Reference in a new issue