From d175673077749708ebfebca937e6b4d473ef2536 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 16 Nov 2019 17:23:15 -0800 Subject: [PATCH] [OCAML] Fixes cloud.drone.io ocaml-test (#4501) * Fixes ocaml-test * Ocaml readme update --- CI/.drone.yml | 18 +++++++++--------- .../src/main/resources/ocaml/readme.mustache | 2 +- .../petstore/ocaml/.openapi-generator/VERSION | 2 +- samples/client/petstore/ocaml/README.md | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CI/.drone.yml b/CI/.drone.yml index dd2151d06a0..f1b442f003e 100644 --- a/CI/.drone.yml +++ b/CI/.drone.yml @@ -29,12 +29,12 @@ steps: # generate all petstore samples (openapi3) - /bin/bash bin/openapi3/run-all-petstore # test ocaml petstore client -#- name: ocaml-test -# image: ocaml/opam2:4.07 -# commands: -# - sudo apt-get -y install m4 -# - cd samples/client/petstore/ocaml -# - opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix -# - eval $(opam env) -# - sudo chmod -R 777 . -# - dune build --build-dir=./_build +- name: ocaml-test + image: ocaml/opam2:4.07 + commands: + - sudo apt-get -y install m4 + - cd samples/client/petstore/ocaml + - opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix pin ocaml-migrate-parsetree 1.3.1 + - eval $(opam env) + - sudo chmod -R 777 . + - dune build --build-dir=./_build diff --git a/modules/openapi-generator/src/main/resources/ocaml/readme.mustache b/modules/openapi-generator/src/main/resources/ocaml/readme.mustache index 2ecff7daa88..9cd39793a8a 100644 --- a/modules/openapi-generator/src/main/resources/ocaml/readme.mustache +++ b/modules/openapi-generator/src/main/resources/ocaml/readme.mustache @@ -24,7 +24,7 @@ OCaml 4.x Please run the following commands to build the package `{{{packageName}}}`: ```sh -opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix +opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix pin ocaml-migrate-parsetree 1.3.1 eval $(opam env) dune build ``` diff --git a/samples/client/petstore/ocaml/.openapi-generator/VERSION b/samples/client/petstore/ocaml/.openapi-generator/VERSION index 83a328a9227..e4955748d3e 100644 --- a/samples/client/petstore/ocaml/.openapi-generator/VERSION +++ b/samples/client/petstore/ocaml/.openapi-generator/VERSION @@ -1 +1 @@ -4.1.0-SNAPSHOT \ No newline at end of file +4.2.2-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/ocaml/README.md b/samples/client/petstore/ocaml/README.md index caa98287d45..e7055fe61f7 100644 --- a/samples/client/petstore/ocaml/README.md +++ b/samples/client/petstore/ocaml/README.md @@ -16,7 +16,7 @@ OCaml 4.x Please run the following commands to build the package `petstore_client`: ```sh -opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix +opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix pin ocaml-migrate-parsetree 1.3.1 eval $(opam env) dune build ```