From ab5a4f61403f05c5e69c5c6c45cc9cbda4b015c4 Mon Sep 17 00:00:00 2001 From: William Cheng <wing328hk@gmail.com> Date: Mon, 18 Nov 2019 21:27:10 +0800 Subject: [PATCH 1/3] fix yaml file --- CI/.drone.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CI/.drone.yml b/CI/.drone.yml index f1b442f003e..eeff869c46a 100644 --- a/CI/.drone.yml +++ b/CI/.drone.yml @@ -30,11 +30,11 @@ steps: - /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 pin ocaml-migrate-parsetree 1.3.1 - - eval $(opam env) - - sudo chmod -R 777 . - - dune build --build-dir=./_build + 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 -- GitLab From 172a5a4bd2901a376f7892c3c63e82f660ff00dc Mon Sep 17 00:00:00 2001 From: William Cheng <wing328hk@gmail.com> Date: Mon, 18 Nov 2019 22:07:36 +0800 Subject: [PATCH 2/3] remove version --- CI/.drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CI/.drone.yml b/CI/.drone.yml index eeff869c46a..d3d1f3f8200 100644 --- a/CI/.drone.yml +++ b/CI/.drone.yml @@ -34,7 +34,7 @@ steps: 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 + - opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix pin ocaml-migrate-parsetree - eval $(opam env) - sudo chmod -R 777 . - dune build --build-dir=./_build -- GitLab From 0c33311f586489918aac097dcf341d26b2849d55 Mon Sep 17 00:00:00 2001 From: William Cheng <wing328hk@gmail.com> Date: Mon, 18 Nov 2019 22:46:26 +0800 Subject: [PATCH 3/3] pin version --- CI/.drone.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/CI/.drone.yml b/CI/.drone.yml index d3d1f3f8200..8594d0b486d 100644 --- a/CI/.drone.yml +++ b/CI/.drone.yml @@ -2,6 +2,17 @@ kind: pipeline name: default steps: +# 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 + - opam pin add ocaml-migrate-parsetree 1.3.1 + - eval $(opam env) + - sudo chmod -R 777 . + - dune build --build-dir=./_build # test haskell client - name: haskell-client-test image: haskell:8.6.5 @@ -28,13 +39,3 @@ steps: - /bin/bash bin/run-all-petstore # 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 pin ocaml-migrate-parsetree - - eval $(opam env) - - sudo chmod -R 777 . - - dune build --build-dir=./_build -- GitLab