Skip to content

Commit

Permalink
Move some test and doc targets to a new package
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Oct 27, 2024
1 parent e7622e8 commit 4808dc5
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/docs/reference/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(mdx
(package provider-tests)
(package provider-dev)
(deps
(package provider)
(glob_files *.txt))
Expand Down
2 changes: 1 addition & 1 deletion doc/docs/tutorials/getting-started/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(mdx
(package provider-tests)
(package provider-dev)
(deps
(package provider)
(glob_files *.txt))
Expand Down
2 changes: 1 addition & 1 deletion doc/docs/tutorials/handler-explicit/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(mdx
(package provider-tests)
(package provider-dev)
(deps
(package provider)
(glob_files *.txt))
Expand Down
54 changes: 54 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,58 @@
(package
(name provider-tests)
(synopsis "Tests for provider")
(depends
(ocaml
(>= 5.2))
(base
(and
(>= v0.17)
(< v0.18)))
(expect_test_helpers_core
(and
(>= v0.17)
(< v0.18)))
(ppx_compare
(and
(>= v0.17)
(< v0.18)))
(ppx_enumerate
(and
(>= v0.17)
(< v0.18)))
(ppx_expect
(and
(>= v0.17)
(< v0.18)))
(ppx_hash
(and
(>= v0.17)
(< v0.18)))
(ppx_here
(and
(>= v0.17)
(< v0.18)))
(ppx_let
(and
(>= v0.17)
(< v0.18)))
(ppx_sexp_conv
(and
(>= v0.17)
(< v0.18)))
(ppx_sexp_value
(and
(>= v0.17)
(< v0.18)))
(ppxlib
(>= 0.33))
(provider
(= :version))))

(package
(name provider-dev)
(synopsis
"Package to regroup dev targets for the provider project, documentation, etc.")
(depends
(ocaml
(>= 5.2))
Expand Down Expand Up @@ -101,6 +153,8 @@
(>= 0.33))
(provider
(= :version))
(provider-tests
(= :version))
(sherlodoc
(and
:with-doc
Expand Down
51 changes: 51 additions & 0 deletions provider-dev.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Package to regroup dev targets for the provider project, documentation, etc."
maintainer: ["Mathieu Barbin <[email protected]>"]
authors: ["Mathieu Barbin"]
license: "ISC"
homepage: "https://github.com/mbarbin/provider"
doc: "https://mbarbin.github.io/provider/"
bug-reports: "https://github.com/mbarbin/provider/issues"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "5.2"}
"ocamlformat" {with-dev-setup & = "0.26.2"}
"base" {>= "v0.17" & < "v0.18"}
"bisect_ppx" {with-dev-setup & >= "2.8.3"}
"eio" {>= "1.0"}
"eio_main" {>= "1.0"}
"expect_test_helpers_core" {>= "v0.17" & < "v0.18"}
"higher_kinded" {>= "v0.17" & < "v0.18"}
"mdx" {>= "2.4"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
"ppx_enumerate" {>= "v0.17" & < "v0.18"}
"ppx_expect" {>= "v0.17" & < "v0.18"}
"ppx_hash" {>= "v0.17" & < "v0.18"}
"ppx_here" {>= "v0.17" & < "v0.18"}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"ppx_let" {>= "v0.17" & < "v0.18"}
"ppx_sexp_conv" {>= "v0.17" & < "v0.18"}
"ppx_sexp_value" {>= "v0.17" & < "v0.18"}
"ppxlib" {>= "0.33"}
"provider" {= version}
"provider-tests" {= version}
"sherlodoc" {with-doc & >= "0.2"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/mbarbin/provider.git"
8 changes: 0 additions & 8 deletions provider-tests.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,18 @@ bug-reports: "https://github.com/mbarbin/provider/issues"
depends: [
"dune" {>= "3.16"}
"ocaml" {>= "5.2"}
"ocamlformat" {with-dev-setup & = "0.26.2"}
"base" {>= "v0.17" & < "v0.18"}
"bisect_ppx" {with-dev-setup & >= "2.8.3"}
"eio" {>= "1.0"}
"eio_main" {>= "1.0"}
"expect_test_helpers_core" {>= "v0.17" & < "v0.18"}
"higher_kinded" {>= "v0.17" & < "v0.18"}
"mdx" {>= "2.4"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
"ppx_enumerate" {>= "v0.17" & < "v0.18"}
"ppx_expect" {>= "v0.17" & < "v0.18"}
"ppx_hash" {>= "v0.17" & < "v0.18"}
"ppx_here" {>= "v0.17" & < "v0.18"}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"ppx_let" {>= "v0.17" & < "v0.18"}
"ppx_sexp_conv" {>= "v0.17" & < "v0.18"}
"ppx_sexp_value" {>= "v0.17" & < "v0.18"}
"ppxlib" {>= "0.33"}
"provider" {= version}
"sherlodoc" {with-doc & >= "0.2"}
"odoc" {with-doc}
]
build: [
Expand Down
2 changes: 1 addition & 1 deletion test/eio/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name provider_test_eio)
(public_name provider-tests.provider_test_eio)
(public_name provider-dev.provider_test_eio)
(inline_tests)
(flags
:standard
Expand Down
2 changes: 1 addition & 1 deletion test/eio/test_providers/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name eio_test_providers)
(public_name provider-tests.eio_test_providers)
(public_name provider-dev.eio_test_providers)
(inline_tests)
(flags
:standard
Expand Down

0 comments on commit 4808dc5

Please sign in to comment.