Skip to content

Commit

Permalink
Upgrade to dune 2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Apr 14, 2020
1 parent 59b64b0 commit 175780c
Show file tree
Hide file tree
Showing 15 changed files with 112 additions and 108 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.2.1 (2020-05-14)
------------------

* Upgrade to dune 2.0

2.2.0 (2020-09-03)
------------------

Expand Down
2 changes: 1 addition & 1 deletion atd.opam
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ homepage: "https://github.com/ahrefs/atd"
bug-reports: "https://github.com/ahrefs/atd/issues"
depends: [
"ocaml" {>= "4.02"}
"dune" {>= "1.11"}
"dune" {>= "2.0"}
"menhir"
"easy-format"
"re"
Expand Down
4 changes: 2 additions & 2 deletions atd/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(libraries atd)
(names unit_tests))

(alias
(name runtest)
(rule
(alias runtest)
(package atd)
(action (run ./unit_tests.exe)))
2 changes: 1 addition & 1 deletion atdgen-codec-runtime.opam
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ license: "MIT"
homepage: "https://github.com/ahrefs/atd"
bug-reports: "https://github.com/ahrefs/atd/issues"
depends: [
"dune" {>= "1.11"}
"dune" {>= "2.0"}
"ocaml" {>= "4.02"}
]
dev-repo: "git+https://github.com/ahrefs/atd.git"
Expand Down
2 changes: 1 addition & 1 deletion atdgen-runtime.opam
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ homepage: "https://github.com/ahrefs/atd"
bug-reports: "https://github.com/ahrefs/atd/issues"
depends: [
"ocaml" {>= "4.02"}
"dune" {>= "1.11"}
"dune" {>= "2.0"}
"yojson" {>= "1.7.0"}
"biniou" {>= "1.0.6"}
"re"
Expand Down
2 changes: 1 addition & 1 deletion atdgen.opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ homepage: "https://github.com/ahrefs/atd"
bug-reports: "https://github.com/ahrefs/atd/issues"
depends: [
"ocaml" {>= "4.02"}
"dune" {>= "1.11"}
"dune" {>= "2.0"}
"atd" {>= "2.0.0"}
"atdgen-runtime" {>= "2.0.0"}
"atdgen-codec-runtime" {with-test}
Expand Down
16 changes: 8 additions & 8 deletions atdgen/test/bucklescript/dune
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
(modules bucklespec_roundtrip bucklespec_j a_j)
(libraries bucklespec_types bucklespec_bs atdgen-runtime))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff bucklespec_bs.expected.ml bucklespec_bs.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff bucklespec_bs.expected.mli bucklespec_bs.mli)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff bucklespec_j.expected.ml bucklespec_j.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (run ./bucklespec_roundtrip.exe)))
110 changes: 55 additions & 55 deletions atdgen/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
(deps test.atd)
(action (run %{bin:atdgen} %{deps})))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test.expected.ml test.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test.expected.mli test.mli)))

Expand All @@ -18,13 +18,13 @@
(deps test2.atd)
(action (run %{bin:atdgen} -open Test %{deps})))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test2.expected.ml test2.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test2.expected.mli test2.mli)))

Expand All @@ -38,13 +38,13 @@
%{atd}
-o testj)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff testj.expected.ml testj.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff testj.expected.mli testj.mli)))

Expand Down Expand Up @@ -78,13 +78,13 @@
(action
(run %{bin:atdgen} -json -std-json -o test_polymorphic_wrap_j %{deps})))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test2j.expected.ml test2j.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test2j.expected.mli test2j.mli)))

Expand All @@ -93,13 +93,13 @@
(deps test3j.atd)
(action (run %{bin:atdgen} -t %{deps})))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test3j_t.expected.ml test3j_t.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test3j_t.expected.mli test3j_t.mli)))

Expand All @@ -108,13 +108,13 @@
(deps test3j.atd)
(action (run %{bin:atdgen} -j -j-std %{deps})))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test3j_j.expected.ml test3j_j.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test3j_j.expected.mli test3j_j.mli)))

Expand All @@ -123,13 +123,13 @@
(deps test.atd)
(action (run %{bin:atdgen} -std-json -extend Test test.atd -o testjstd)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff testjstd.expected.ml testjstd.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff testjstd.expected.mli testjstd.mli)))

Expand All @@ -138,29 +138,29 @@
(deps test.atd)
(action (run %{bin:atdgen} -validate -extend Test test.atd -o testv)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff testv.expected.ml testv.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff testv.expected.mli testv.mli)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_ambiguous_record_j.expected.ml test_ambiguous_record_j.ml)))


(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_polymorphic_wrap_t.expected.ml test_polymorphic_wrap_t.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_polymorphic_wrap_j.expected.ml test_polymorphic_wrap_j.ml)))

Expand All @@ -169,13 +169,13 @@
(deps test_annot.atd)
(action (run %{bin:atdgen} -t %{deps})))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_annot_t.expected.ml test_annot_t.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_annot_t.expected.mli test_annot_t.mli)))

Expand All @@ -184,31 +184,31 @@
(deps test_annot.atd)
(action (run %{bin:atdgen} -j -j-std %{deps})))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_annot_j.expected.ml test_annot_j.ml)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_annot_j.expected.mli test_annot_j.mli)))

(rule
(targets test_annot_error.stderr)
(deps (:atd test_annot_error.atd) %{bin:atdgen})
(deps (:atd test_annot_error.atd))
(action
(with-stderr-to test_annot_error.stderr
(with-stderr-to test_annot_error.stderr
(with-stdout-to test_annot_error.stdout
(bash "%{bin:atdgen} -t %{atd} || echo 'Failed succesfully!'")))))
(with-accepted-exit-codes 1 (run %{bin:atdgen} -t %{atd}))))))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_annot_error.expected.stderr test_annot_error.stderr)))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff test_annot_error.expected.stdout test_annot_error.stdout)))

Expand All @@ -231,7 +231,7 @@
test_atdgen_main
test_lib))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (run ./test_atdgen_main.exe)))
8 changes: 4 additions & 4 deletions atdgen/test/spec_js/dune
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
(targets spec_j.json)
(action (with-stdout-to %{targets} (run ./test_j.exe))))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff spec_j.expected.json spec_j.json)))

(rule
(targets spec_bs.json)
(action (with-stdout-to %{targets} (run ./test_bs.exe))))

(alias
(name runtest)
(rule
(alias runtest)
(package atdgen)
(action (diff spec_bs.expected.json spec_bs.json)))
1 change: 0 additions & 1 deletion atdgen/test/test_annot_error.expected.stdout
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
Failed succesfully!
2 changes: 1 addition & 1 deletion atdj.opam
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ homepage: "https://github.com/ahrefs/atd"
bug-reports: "https://github.com/ahrefs/atd/issues"
depends: [
"ocaml" {>= "4.02"}
"dune" {>= "1.11"}
"dune" {>= "2.0"}
"atd" {>= "2.0.0"}
"re"
]
Expand Down
Loading

0 comments on commit 175780c

Please sign in to comment.