-
Notifications
You must be signed in to change notification settings - Fork 0
/
make
executable file
·38 lines (34 loc) · 923 Bytes
/
make
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
#!/usr/bin/env nu
def build [] {
(sbcl --noinform
--non-interactive
--eval "(load \"epsilon.lisp\")"
--eval "(load-epsilon)")
}
def test [] {
(sbcl --noinform
--non-interactive
--eval "(load \"epsilon.lisp\")"
--eval "(load-epsilon)"
--eval "(load-epsilon-tests)"
--eval "(tool.test:run-all-tests)")
}
def coverage [] {
mkdir target/coverage
(sbcl --noinform
--non-interactive
--eval "(require :sb-cover)"
--eval "(load \"epsilon.lisp\")"
--eval "(load-epsilon)"
--eval "(load-epsilon-tests)"
--eval "(tool.test:run-all-tests)"
--eval "(sb-cover:report \"target/coverage/\")")
open target/coverage/cover-index.html
}
def main [args] {
match $args {
"build" => build,
"test" => test,
"coverage" => coverage
}
}