mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
081605d04d
(and update for new errors)
76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
(dirs runtimes compiler build_system tests)
|
|
|
|
(data_only_dirs syntax_highlighting)
|
|
|
|
(vendored_dirs catala-examples.tmp french-law.tmp)
|
|
|
|
(copy_files
|
|
(alias doc)
|
|
(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+8 -w -67)))
|
|
; 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
|
|
(alias doc)
|
|
(action
|
|
(with-stdout-to
|
|
catala.html
|
|
(pipe-stdout
|
|
(run catala --help=groff)
|
|
(run groff -P -l -P -r -mandoc -Thtml)))))
|
|
|
|
(rule
|
|
(alias doc)
|
|
(action
|
|
(with-stdout-to
|
|
clerk.html
|
|
(pipe-stdout
|
|
(run clerk --help=groff)
|
|
(run groff -P -l -P -r -mandoc -Thtml)))))
|
|
|
|
(alias
|
|
(name exec)
|
|
(deps compiler/catala.exe build_system/clerk.exe))
|
|
|
|
;; 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))
|
|
|
|
;; 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)))
|