Initial switch to prove, travis and quicklisp badges.

This commit is contained in:
Brit Butler 2015-09-02 13:41:39 -05:00
parent 5f3100604c
commit 64c917b53f
5 changed files with 46 additions and 13 deletions

1
.gitignore vendored
View file

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

22
.travis.yml Normal file
View 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

View file

@ -1,5 +1,8 @@
# coleslaw # coleslaw
[![Build Status](https://travis-ci.org/kingcons/coleslaw.svg?branch=master)](https://travis-ci.org/kingcons/coleslaw)
[![Quicklisp](http://quickdocs.org/badge/<project name>.svg)](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"/> <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. > [Czeslaw Milosz](http://blog.redlinernotes.com/tag/milosz.html) was the writer-in-residence at UNC c. 1992.

View file

@ -26,23 +26,19 @@
(:file "indexes") (:file "indexes")
(:file "feeds") (:file "feeds")
(:file "coleslaw")) (:file "coleslaw"))
:in-order-to ((test-op (load-op coleslaw-tests))) :in-order-to ((test-op (test-op coleslaw-test))))
:perform (test-op :after (op c)
(funcall (intern "RUN!" :coleslaw-tests)
(intern "COLESLAW-TESTS" :coleslaw-tests))))
(defsystem #:coleslaw-tests (defsystem #:coleslaw-test
:description "A test suite for coleslaw." :description "A test suite for coleslaw."
:license "BSD" :license "BSD"
:author "Brit Butler <redline6561@gmail.com>" :author "Brit Butler <redline6561@gmail.com>"
:depends-on (coleslaw stefil) :depends-on (:coleslaw :prove)
:pathname "tests/" :defsystem-depends-on (:prove-asdf)
:serial t :components ((:module "tests"
:components ()) :components
((:test-file "tests"))))
(defmethod operation-done-p ((op test-op) :perform (test-op :after (op c)
(c (eql (find-system :coleslaw)))) (funcall (intern #.(string :run) :prove) c)))
(values nil))
(defpackage #:coleslaw-conf (:export #:*basedir*)) (defpackage #:coleslaw-conf (:export #:*basedir*))
(defparameter coleslaw-conf:*basedir* (defparameter coleslaw-conf:*basedir*

11
tests/tests.lisp Normal file
View 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)