Browse code
Add a run-tests function and use Roswell for CI
Fernando Borretti authored on 12/10/2015 15:31:37
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -1,27 +1,43 @@ |
1 | 1 |
language: common-lisp |
2 | 2 |
|
3 | 3 |
env: |
4 |
+ global: |
|
5 |
+ - PATH=~/.roswell/bin:$PATH |
|
6 |
+ - ROSWELL_BRANCH=master |
|
7 |
+ - ROSWELL_INSTALL_DIR=$HOME/.roswell |
|
8 |
+ - COVERAGE_EXCLUDE=t |
|
4 | 9 |
matrix: |
5 |
- - LISP=sbcl COVERALLS=true |
|
6 |
- - LISP=ccl |
|
10 |
+ - LISP=sbcl-bin COVERALLS=true |
|
11 |
+ - LISP=ccl-bin |
|
12 |
+ - LISP=clisp |
|
7 | 13 |
|
8 | 14 |
install: |
9 |
- # Install cl-travis |
|
10 |
- - curl https://raw.githubusercontent.com/luismbo/cl-travis/master/install.sh | bash |
|
15 |
+ # Roswell & coveralls |
|
16 |
+ - curl -L https://raw.githubusercontent.com/snmsts/roswell/$ROSWELL_BRANCH/scripts/install-for-ci.sh | sh |
|
17 |
+ - git clone https://github.com/fukamachi/cl-coveralls ~/lisp/cl-coveralls |
|
11 | 18 |
# Clone cl-libyaml |
12 | 19 |
- git clone https://github.com/eudoxia0/cl-libyaml.git ~/lisp/cl-libyaml |
13 |
- # coveralls.io |
|
14 |
- - git clone https://github.com/fukamachi/cl-coveralls ~/lisp/cl-coveralls |
|
20 |
+ |
|
21 |
+cache: |
|
22 |
+ directories: |
|
23 |
+ - $HOME/.roswell |
|
24 |
+ - $HOME/.config/common-lisp |
|
25 |
+ |
|
26 |
+before_script: |
|
27 |
+ - ros --version |
|
28 |
+ - ros config |
|
15 | 29 |
|
16 | 30 |
script: |
17 |
- - cl -l fiveam -l cl-coveralls |
|
18 |
- -e '(setf fiveam:*debug-on-error* t)' |
|
19 |
- -e '(setf *debugger-hook* |
|
20 |
- (lambda (c h) |
|
21 |
- (declare (ignore c h)) |
|
22 |
- (uiop:quit -1)))' |
|
31 |
+ - ros -e '(ql:quickload (list :fiveam :cl-coveralls))' |
|
32 |
+ -e '(setf fiveam:*debug-on-error* t |
|
33 |
+ fiveam:*debug-on-failure* t)' |
|
34 |
+ -e '(setf *debugger-hook* |
|
35 |
+ (lambda (c h) |
|
36 |
+ (declare (ignore c h)) |
|
37 |
+ (uiop:quit -1)))' |
|
23 | 38 |
-e '(coveralls:with-coveralls (:exclude (list "t" "src/error.lisp")) |
24 |
- (ql:quickload :cl-yaml-test))' |
|
39 |
+ (ql:quickload :cl-yaml-test) |
|
40 |
+ (cl-yaml-test:run-tests))' |
|
25 | 41 |
|
26 | 42 |
notifications: |
27 | 43 |
email: |
... | ... |
@@ -1,12 +1,14 @@ |
1 | 1 |
(in-package :cl-user) |
2 | 2 |
(defpackage cl-yaml-test |
3 | 3 |
(:use :cl :fiveam) |
4 |
+ (:export :run-tests) |
|
4 | 5 |
(:documentation "Run all test suites.")) |
5 | 6 |
(in-package :cl-yaml-test) |
6 | 7 |
|
7 |
-(run! 'cl-yaml-test.float:float) |
|
8 |
-(run! 'cl-yaml-test.scalar:scalar) |
|
9 |
-(run! 'cl-yaml-test.parser:parser) |
|
10 |
-(run! 'cl-yaml-test.emitter:emitter) |
|
11 |
-(run! 'cl-yaml-test.spec:spec) |
|
12 |
-(run! 'cl-yaml-test.bench:bench) |
|
8 |
+(defun run-tests () |
|
9 |
+ (run! 'cl-yaml-test.float:float) |
|
10 |
+ (run! 'cl-yaml-test.scalar:scalar) |
|
11 |
+ (run! 'cl-yaml-test.parser:parser) |
|
12 |
+ (run! 'cl-yaml-test.emitter:emitter) |
|
13 |
+ (run! 'cl-yaml-test.spec:spec) |
|
14 |
+ (run! 'cl-yaml-test.bench:bench)) |