Skip to content

Commit

Permalink
Improve quality of the port by adding tests and keeping the depopts o…
Browse files Browse the repository at this point in the history
…ptional

Signed-off-by: Nathan Rebours <[email protected]>
  • Loading branch information
NathanReb committed Mar 9, 2022
1 parent 14784ee commit 4175d4c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions fmt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ depends: [
depopts: ["base-unix"
"cmdliner"]
conflicts: ["cmdliner" {< "0.9.8"}]
build: [
[ "dune" "build" "-p" name "-j" jobs ]
]
build: [ "dune" "build" "-p" name "-j" jobs "@install" "@runtest" {with-test} ]
description: """
Fmt exposes combinators to devise `Format` pretty-printing functions.

Expand Down
3 changes: 2 additions & 1 deletion src/dune
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(library
(name fmt)
(public_name fmt)
(libraries result)
(modules fmt)
(flags :standard -w -3-6-27-34-50)
(wrapped false))

(library
(name fmt_tty)
(public_name fmt.tty)
(optional)
(libraries unix fmt)
(modules fmt_tty)
(flags :standard -w -3-6-27)
Expand All @@ -17,6 +17,7 @@
(library
(name fmt_cli)
(public_name fmt.cli)
(optional)
(libraries fmt cmdliner)
(modules fmt_cli)
(flags :standard -w -3-6-27)
Expand Down
4 changes: 4 additions & 0 deletions test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(test
(name test)
(modules test)
(libraries fmt))

0 comments on commit 4175d4c

Please sign in to comment.