-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
77 lines (71 loc) · 3.35 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
all:
binary:
buildapp --output rlgl-server \
--asdf-tree `pwd`/.. \
--asdf-tree `pwd`/local-projects/postmodern-20220220-git \
--asdf-tree `pwd`/local-projects/cl-json-util \
--asdf-tree `pwd`/local-projects/snooze-20210518-git \
--asdf-tree `pwd`/parsers \
--asdf-tree `pwd`/db \
--asdf-tree `pwd`/user \
--asdf-tree `pwd`/util \
--asdf-tree ~/quicklisp/dists/quicklisp/software \
--load-system rlgl-server \
--compress-core \
--entry "rlgl-server:start-rlgl-server"
check: clean
openssl genrsa -out /tmp/rlgl-test-key.pem 1024
openssl rsa -in /tmp/rlgl-test-key.pem -out /tmp/rlgl-public-test-key.pem -outform PEM -pubout
PRIVATE_KEY_FILE=/tmp/rlgl-test-key.pem \
PUBLIC_KEY_FILE=/tmp/rlgl-public-test-key.pem \
sbcl --dynamic-space-size 4096 \
--disable-debugger \
--eval '(ql:quickload :prove)' \
--eval '(pushnew (truename ".") asdf:*central-registry* )' \
--eval '(pushnew (truename "./user") asdf:*central-registry* )' \
--eval '(pushnew (truename "./util") asdf:*central-registry* )' \
--eval '(pushnew (truename "./db") asdf:*central-registry* )' \
--eval '(pushnew (truename "./parsers") asdf:*central-registry* )' \
--eval '(pushnew (truename "./test/") asdf:*central-registry* )' \
--eval '(ql:register-local-projects)' \
--eval '(ql:quickload :rlgl-server)' \
--eval "(asdf:oos 'asdf:load-op :rlgl-server :force t)" \
--eval '(ql:quickload :test-rlgl-server)' \
--eval '(test-rlgl-server:run)' \
--eval '(sb-ext:quit)'
run: clean
openssl genrsa -out /tmp/rlgl-test-key.pem 1024
PRIVATE_KEY_FILE=/tmp/rlgl-test-key.pem \
sbcl --dynamic-space-size 4096 \
--eval '(pushnew (truename ".") asdf:*central-registry* )' \
--eval '(pushnew (truename "./local-projects/cl-json-util") asdf:*central-registry* )' \
--eval '(pushnew (truename "./user") asdf:*central-registry* )' \
--eval '(pushnew (truename "./util") asdf:*central-registry* )' \
--eval '(pushnew (truename "./db") asdf:*central-registry* )' \
--eval '(pushnew (truename "./parsers") asdf:*central-registry* )' \
--eval '(pushnew (truename "./test/") asdf:*central-registry* )' \
--eval '(asdf:load-system :rlgl-server)' \
--eval '(rlgl-server:start-rlgl-server t "test/config.ini")'
cover: clean
sbcl --disable-debugger \
--eval '(require :sb-cover)' \
--eval '(ql:quickload :prove)' \
--eval '(declaim (optimize sb-cover:store-coverage-data))' \
--eval '(pushnew (truename ".") asdf:*central-registry* )' \
--eval '(ql:register-local-projects)' \
--eval '(ql:quickload :rlgl-server)' \
--eval "(asdf:oos 'asdf:load-op :rlgl-server :force t)" \
--eval '(prove:run #P"test.lisp")' \
--eval '(sb-cover:report "./coverage/")' \
--eval '(sb-ext:quit)'
coveralls: clean
COVERALLS=true sbcl --disable-debugger \
--eval '(ql:quickload :cl-coveralls)' \
--eval '(pushnew (truename ".") asdf:*central-registry* )' \
--eval '(pushnew (truename "./test/") asdf:*central-registry*)' \
--eval '(ql:register-local-projects)' \
--eval '(ql:quickload :test-rlgl-server)' \
--eval '(coveralls:with-coveralls (:project-dir (directory-namestring (truename "."))) (test-rlgl-server:run))' \
--eval '(sb-ext:quit)'
clean:
@rm -rf system-index.txt test/system-index.txt coverage/* test-policy rlgl-server *~ */*~