diff --git a/.travis.yml b/.travis.yml index 33b7ef8..497bfcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,12 @@ 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 @@ -30,9 +36,12 @@ install: 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 diff --git a/run-tests.bash b/run-tests.bash index f86484a..0636e17 100755 --- a/run-tests.bash +++ b/run-tests.bash @@ -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)))'