Skip to content

Commit

Permalink
Try to fix coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
libre-man committed May 24, 2020
1 parent aae0572 commit 9cb1621
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,25 @@ jobs:
allow_failures:
- env: LISP=ccl32

# this bit is just testing that travis correctly sets up ASDF to find
# systems placed somewhere within ~/lisp. You can remove this section
# in your own .travis.yml file.
before_script:
- echo "(defsystem :dummy-cl-travis-system)" > ~/lisp/dummy-cl-travis-system.asd

install:
- if [ -x ./install.sh ] && head -2 ./install.sh | grep '^# cl-travis' > /dev/null;
then
./install.sh;
else
curl https://raw.githubusercontent.com/sionescu/cl-travis/master/install.sh | sh;
fi
- cl -e '(ql:update-all-dists :prompt nil)'
- git clone https://github.com/fukamachi/cl-coveralls ~/lisp/cl-coveralls

script:
- ./run-tests.bash


notifications:
email: false
14 changes: 6 additions & 8 deletions run-tests.bash
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#!/bin/bash

if [[ -n "$COVERALLS" ]]; then
cl -l unix-opts -l unix-opts/tests -l cl-coveralls \
-e '(setf *debugger-hook*
(lambda (c h)
(declare (ignore c h))
(uiop:quit 1)))' \
-e '(coveralls:with-coveralls (:exclude "./unix-opts-test.lisp")
(unix-opts/tests:run))'
cl -l unix-opts/tests \
-e '(progn
(ql:quickload :cl-coveralls)
(coveralls:with-coveralls ()
(unix-opts/tests:run)))'

else
cl -l unix-opts -l unix-opts/tests \
cl -l unix-opts/tests \
-e '(progn
(uiop:quit (if (unix-opts/tests:run) 0 1)))'

Expand Down

0 comments on commit 9cb1621

Please sign in to comment.