Skip to content

Commit

Permalink
Opam package: add missing test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Oct 19, 2024
1 parent 23283e7 commit 0ed2f51
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ jobs:
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only --with-test
- run: opam install core_bench core_unix
- run: opam exec -- dune build
- run: opam exec -- dune runtest
5 changes: 5 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
(depends
(ocaml (>= 4.12.0))
seq
(core_bench :with-test)
(core_unix :with-test)
(memtrace :with-test)
(csv :with-test)
(ppx_expect :with-test)
(js_of_ocaml :with-test)
(ounit2 :with-test))
(description "
Pure OCaml regular expressions with:
Expand Down
3 changes: 3 additions & 0 deletions lib_test/expect/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
(library
(name re_tests)
;; The ppx_expect dependencies only work with ppx_expect >= v0.17.0
;; which requires OCaml >= 5.1.0
(enabled_if (>= %{ocaml_version} 5.1.0))
(libraries
re_private
;; This is because of the (implicit_transitive_deps false)
Expand Down
5 changes: 5 additions & 0 deletions re.opam
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ depends: [
"dune" {>= "3.12"}
"ocaml" {>= "4.12.0"}
"seq"
"core_bench" {with-test}
"core_unix" {with-test}
"memtrace" {with-test}
"csv" {with-test}
"ppx_expect" {with-test}
"js_of_ocaml" {with-test}
"ounit2" {with-test}
"odoc" {with-doc}
]
Expand Down

0 comments on commit 0ed2f51

Please sign in to comment.