-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.travis.yml
71 lines (59 loc) · 2.65 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: common-lisp
sudo: required
env:
matrix:
- LISP=abcl CATCH=1
- LISP=abcl NOCATCH=1
- LISP=allegro CATCH=1
- LISP=allegro NOCATCH=1
# Error outside our control:
# The command "curl https://raw.githubusercontent.com/luismbo/cl-travis/master/install.sh | bash" failed and exited with 1 during .
# - LISP=allegromodern
# Error outside our control: CCL 1.10 and cl-coveralls don't work together (see also cl-coveralls README):
# [package cl-coveralls] Not supported implementation: Clozure Common Lisp Version 1.10-r16196 (LinuxX8664)
# Therefore use CCL without coverage
#- LISP=ccl COVERALLS=true
- LISP=ccl
- LISP=clisp
# Error outside our control:
# /home/travis/.cim/bin/cl: 9: .: Can't open /home/travis/.cim/config/current.7469
#- LISP=cmucl
- LISP=ecl CATCH=1
- LISP=ecl NOCATCH=1
- LISP=sbcl COVERALLS=true
install:
# Install cl-travis
- curl https://raw.githubusercontent.com/metawilm/cl-travis/dev/install.sh | bash
#- curl https://raw.githubusercontent.com/luismbo/cl-travis/master/install.sh | bash
# Newest Dexador needed for cl-coveralls -- https://github.com/fukamachi/cl-coveralls/issues/10
- git clone https://github.com/fukamachi/dexador.git ~/lisp/dexador
# Our project
- git clone https://github.com/metawilm/cl-python.git ~/lisp/cl-python
script:
# Use SBCL for coverage
# Let CLISP print a backtrace, because it errs
- cl -e '(in-package :cl-user)'
-e '(print *package*)'
-e '(ql:quickload :ptester)'
-e '(when (member :sbcl *features*) (dolist (s (quote (:trivial-features :babel))) (ql:quickload s)))'
-e '#+sbcl (ql:quickload :cl-coveralls)'
-e '#+sbcl (defmacro outer (&body body) `(coveralls:with-coveralls () ,@body))'
-e '#-sbcl (defmacro outer (&body body) `(progn ,@body))'
-e '(defun do-test ()
(ql:quickload :clpython)
(ql:quickload :clpython/test)
(funcall (read-from-string "clpython.test:run-tests")))'
-e '(when (asdf/os:getenv "NOCATCH")
(do-test))'
-e '(unless (asdf/os:getenv "NOCATCH")
(let (ret normal-exit)
(unwind-protect
(outer
(setf ret (do-test))
(setf normal-exit t))
(cond ((and normal-exit (eq ret t)) (warn "Test suite SUCCESS") (uiop:quit 0))
(normal-exit (warn "Test suite FAIL") (uiop:quit -1))
(t (warn "Unexpected abort during test suite") (uiop:quit -1))))))'
notifications:
email:
- metawilm@gmail.com