forked from CatalaLang/catala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdune
73 lines (63 loc) · 1.4 KB
/
dune
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
(dirs runtimes compiler french_law build_system examples)
(data_only_dirs tests syntax_highlighting)
(copy_files compiler/surface/grammar.html)
; Override dune default warnings with sane settings
(env
; don't stop building because of warnings
(dev
(flags
(:standard -warn-error -a)))
; for CI runs: must fail on warnings
(check
(flags
(:standard
-w
+a-4-29-40-41-42-44-45-48-58-59-60-63-64-65-66-67-68-69-70
-warn-error
+a)))
; let us see the warnings even in release mode, but non-fatal
(release
(flags
(:standard
-w
+a-4-29-40-41-42-44-45-48-58-59-60-63-64-65-66-67-68-69-70
-warn-error
-a))))
(rule
(action
(with-stdout-to
catala.html
(pipe-stdout
(run catala --help=groff)
(run groff -P -l -P -r -mandoc -Thtml)))))
(rule
(action
(with-stdout-to
clerk.html
(pipe-stdout
(run clerk --help=groff)
(run groff -P -l -P -r -mandoc -Thtml)))))
(rule
(action
(with-stdout-to
catala_legifrance.html
(pipe-stdout
(run catala_legifrance --help=groff)
(run groff -P -l -P -r -mandoc -Thtml)))))
(alias
(name exec)
(deps compiler/catala.exe build_system/clerk.exe))
(rule
(alias runtest)
(package clerk)
(deps
(source_tree tests))
(action
(run clerk --exe %{bin:catala} test tests)))
(rule
(alias runtest)
(package clerk)
(deps
(source_tree examples))
(action
(run clerk --exe %{bin:catala} test examples)))