Skip to content

Commit

Permalink
Merge 202c8a6 into 0cce127
Browse files Browse the repository at this point in the history
  • Loading branch information
ollelauribostrom committed Sep 5, 2018
2 parents 0cce127 + 202c8a6 commit 6c6df92
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.#*
system-index.txt
.DS_Store
coverage
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ script:
-e '(or (coveralls:with-coveralls (:exclude (list "t"))
(prove:run :cl-dotenv-test))
(uiop:quit -1))';
fi
fi
28 changes: 24 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
.PHONY: load test
.PHONY: install test coverage sbcl

load:
sbcl --eval "(pushnew *default-pathname-defaults* asdf:*central-registry*)" --eval "(ql:register-local-projects)" --eval "(ql:quickload :cl-dotenv)"
install:
ros install ./cl-dotenv.asd && \
ros install ./cl-dotenv-test.asd

test:
sbcl --eval "(pushnew *default-pathname-defaults* asdf:*central-registry*)" --eval "(ql:register-local-projects)" --eval "(asdf:test-system :cl-dotenv)" --non-interactive
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)"

0 comments on commit 6c6df92

Please sign in to comment.