Skip to content

Commit

Permalink
Update pipelines and disable debugger during CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Jul 10, 2023
1 parent 55400dc commit 383bc4d
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# .github/workflows/test.yaml
# .github/workflows/run-tests.yaml
name: test
on: [ push, pull_request ]
jobs:
test:
run-tests:
strategy:
fail-fast: false
matrix:
Expand Down
14 changes: 14 additions & 0 deletions Dockerfile.ccl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM clfoundation/ccl:1.12

ENV QUICKLISP_ADD_TO_INIT_FILE=true
ENV QUICKLISP_DIST_VERSION=latest
ENV LISP=ccl

WORKDIR /app
COPY . .

RUN mkdir -p ~/.config/common-lisp/source-registry.conf.d && \
echo '(:tree "/app/")' > ~/.config/common-lisp/source-registry.conf.d/workspace.conf && \
/usr/local/bin/install-quicklisp

ENTRYPOINT ["./scripts/run-tests.sh"]
14 changes: 14 additions & 0 deletions Dockerfile.ecl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM clfoundation/ecl:21.2.1

ENV QUICKLISP_ADD_TO_INIT_FILE=true
ENV QUICKLISP_DIST_VERSION=latest
ENV LISP=ecl

WORKDIR /app
COPY . .

RUN mkdir -p ~/.config/common-lisp/source-registry.conf.d && \
echo '(:tree "/app/")' > ~/.config/common-lisp/source-registry.conf.d/workspace.conf && \
/usr/local/bin/install-quicklisp

ENTRYPOINT ["./scripts/run-tests.sh"]
14 changes: 14 additions & 0 deletions Dockerfile.sbcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM clfoundation/sbcl:2.2.4

ENV QUICKLISP_ADD_TO_INIT_FILE=true
ENV QUICKLISP_DIST_VERSION=latest
ENV LISP=sbcl

WORKDIR /app
COPY . .

RUN mkdir -p ~/.config/common-lisp/source-registry.conf.d && \
echo '(:tree "/app/")' > ~/.config/common-lisp/source-registry.conf.d/workspace.conf && \
/usr/local/bin/install-quicklisp

ENTRYPOINT ["./scripts/run-tests.sh"]
13 changes: 12 additions & 1 deletion scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ set -e

LISP=${LISP:-sbcl}

${LISP} --eval '(ql:quickload :clingon.test)' \
_no_debug_flag=""
case "${LISP}" in
sbcl)
_no_debug_flag="--non-interactive"
;;
ecl)
_no_debug_flag="--nodebug"
;;
esac

${LISP} ${_no_debug_flag} \
--eval '(ql:quickload :clingon.test)' \
--eval '(setf rove:*enable-colors* nil)' \
--eval '(asdf:test-system :clingon.test)' \
--eval '(uiop:quit (length (rove/core/stats:all-failed-assertions rove/core/stats:*stats*)))'

0 comments on commit 383bc4d

Please sign in to comment.