From a603e80eb462eb28cc051c8aa1a6bf455e800282 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 12 Aug 2019 16:01:06 +0100 Subject: [PATCH] Set OPAMERRLOGLEN=0 in generated images This shows the whole build log on failure, which is useful for CI. --- src/pipeline.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pipeline.ml b/src/pipeline.ml index c63caf2d..ac8e4b6b 100644 --- a/src/pipeline.ml +++ b/src/pipeline.ml @@ -36,10 +36,12 @@ let install_compiler_df ~switch opam_image = try_disable_bytes switch @@ run "opam init -k local -a /home/opam/opam-repository --bare" @@ maybe_add_beta switch @@ + env ["OPAMYES", "1"; + "OPAMERRLOGLEN", "0"; + ] @@ run "opam switch create %s %s" switch_name (Ocaml_version.Opam.V2.name switch) @@ run "rm -rf .opam/repo/default/.git" @@ run "opam install -y depext" @@ - env ["OPAMYES", "1"] @@ entrypoint_exec ["opam"; "config"; "exec"; "--"] @@ cmd "bash" @@ copy ~src:["Dockerfile"] ~dst:"/Dockerfile.ocaml" ()