diff --git a/.travis.yml b/.travis.yml index f3afe822..61862732 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ env: global: - PACKAGE="ocaml-migrate-parsetree" - PRE_INSTALL_HOOK="cd /home/opam/opam-repository && git pull origin master && opam update -u -y" + - TESTS=false matrix: - DISTRO=alpine OCAML_VERSION=4.02.3 - DISTRO=alpine OCAML_VERSION=4.03.0 diff --git a/dune-project b/dune-project index 1d96e928..ac8dee5c 100644 --- a/dune-project +++ b/dune-project @@ -1,4 +1,5 @@ -(lang dune 1.11) +(lang dune 2.3) (name ocaml-migrate-parsetree) +(formatting disabled) (allow_approximate_merlin) (using cinaps 1.0) diff --git a/ocaml-migrate-parsetree.opam b/ocaml-migrate-parsetree.opam index 25f559cf..130ec78f 100644 --- a/ocaml-migrate-parsetree.opam +++ b/ocaml-migrate-parsetree.opam @@ -10,12 +10,12 @@ bug-reports: "https://github.com/ocaml-ppx/ocaml-migrate-parsetree/issues" dev-repo: "git+https://github.com/ocaml-ppx/ocaml-migrate-parsetree.git" doc: "https://ocaml-ppx.github.io/ocaml-migrate-parsetree/" tags: [ "syntax" "org:ocamllabs" ] -build: [ - ["dune" "build" "-p" name "-j" jobs] -] +build: ["dune" "build" "-p" name "-j" jobs] +run-test: ["dune" "runtest" "-p" name "-j" jobs] depends: [ - "dune" {>= "1.11"} + "dune" {>= "2.3"} "ocaml" {>= "4.02.3" & < "4.13"} + "cinaps" {with-test & >= "v0.13.0"} ] synopsis: "Convert OCaml parsetrees between different versions" description: """ diff --git a/tools/dune b/tools/dune index 979bb710..79c72b6b 100644 --- a/tools/dune +++ b/tools/dune @@ -1,5 +1,19 @@ -(executables - (names add_special_comments pp gencopy) +(executable + (name pp) + (modules pp pp_rewrite) + (flags :standard -w -3)) + +(executable + (name gencopy) + (enabled_if (>= %{ocaml_version} 4.10)) + (modules gencopy) + (libraries compiler-libs.common compiler-libs.bytecomp) + (flags :standard -w -3)) + +(executable + (name add_special_comments) + (enabled_if (>= %{ocaml_version} 4.10)) + (modules add_special_comments) (libraries compiler-libs.common compiler-libs.bytecomp) (flags :standard -w -3))