2023-10-17 16:24:36 +03:00
(dirs runtimes compiler build_system)
2022-05-25 15:36:51 +03:00
2022-07-29 17:39:33 +03:00
(data_only_dirs tests syntax_highlighting)
2022-05-25 15:36:51 +03:00
2024-02-12 15:44:53 +03:00
(vendored_dirs _catala-examples _french-law)
2024-01-19 16:35:40 +03:00
(copy_files
(alias doc)
(files compiler/surface/grammar.html))
2022-08-01 20:29:34 +03:00
2023-02-28 19:26:49 +03:00
; Override dune default warnings with sane settings
(env
; don't stop building because of warnings
(dev
(flags
2024-01-24 17:37:43 +03:00
(:standard -warn-error -a+8 -w -67)))
2023-02-28 19:26:49 +03:00
; 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))))
2022-08-01 20:29:34 +03:00
(rule
2024-01-19 16:35:40 +03:00
(alias doc)
2022-08-01 20:29:34 +03:00
(action
(with-stdout-to
catala.html
(pipe-stdout
(run catala --help=groff)
(run groff -P -l -P -r -mandoc -Thtml)))))
2022-12-22 22:42:56 +03:00
(rule
2024-01-19 16:35:40 +03:00
(alias doc)
2022-12-22 22:42:56 +03:00
(action
(with-stdout-to
clerk.html
(pipe-stdout
(run clerk --help=groff)
(run groff -P -l -P -r -mandoc -Thtml)))))
2022-05-25 15:36:51 +03:00
(alias
(name exec)
(deps compiler/catala.exe build_system/clerk.exe))
2024-02-05 18:17:57 +03:00
;; This alias contains the minimum requirements to run the tests. It's lighter than building @install which includes the (long) compilation of `catala.js`
(alias
(name for-tests)
(deps
_build/install/default/bin/catala
_build/install/default/bin/clerk
_build/install/default/lib/catala/runtime_ocaml/runtime_ocaml.cmi
_build/install/default/lib/catala/runtime_ocaml/runtime_ocaml__Runtime.cmi))
2024-01-17 14:51:09 +03:00
;; This garbles Clerk output, prefer to run from Makefile
;; (rule
;; (alias runtest)
;; (package catala)
;; (deps
;; (source_tree tests)
;; (alias install))
;; (action
;; (run %{bin:clerk} test --exe %{bin:catala} tests)))