-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathblueprint.scm
More file actions
36 lines (32 loc) · 856 Bytes
/
blueprint.scm
File metadata and controls
36 lines (32 loc) · 856 Bytes
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
(use-modules (blue subprocess)
(blue types blueprint)
(blue types command))
(define-command (check-command arguments)
((invoke "check")
(category 'dispatch))
(zero?
(popen "guix"
`("repl"
"-L" ,(in-vicinity (getcwd) "modules")
"--"
"tests/test-sops.scm"))))
(define-command (system-tests-command arguments)
((invoke "system-tests")
(category 'dispatch))
(zero?
(popen "guix"
`("build"
"-L" ,(in-vicinity (getcwd) "modules")
"-m" "etc/manifests/system-tests.scm"))))
(define-command (clean-command arguments)
((invoke "clean")
(category 'dispatch))
(zero?
(popen "rm"
`("-rfv" ,(string-append (getcwd) "/*.log")))))
(blueprint
(commands
(list
check-command
clean-command
system-tests-command)))