-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
27 lines (23 loc) · 850 Bytes
/
Makefile
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
.PHONY: install test coverage sbcl
install:
ros install ./cl-dotenv.asd && \
ros install ./cl-dotenv-test.asd
test:
run-prove cl-dotenv-test.asd
coverage:
sbcl --non-interactive\
--eval "(pushnew *default-pathname-defaults* asdf:*central-registry*)" \
--eval "(ql:register-local-projects)" \
--eval "(ql:quickload :prove)" \
--eval "(require :sb-cover)" \
--eval "(declaim (optimize sb-cover:store-coverage-data))" \
--eval "(asdf:oos 'asdf:load-op :cl-dotenv :force t)" \
--eval "(prove:run :cl-dotenv-test)" \
--eval "(sb-cover:report \"coverage/\")" \
--eval "(declaim (optimize (sb-cover:store-coverage-data 0)))" && \
open coverage/cover-index.html
sbcl:
sbcl \
--eval "(pushnew *default-pathname-defaults* asdf:*central-registry*)" \
--eval "(ql:register-local-projects)" \
--eval "(ql:quickload :cl-dotenv)"