Skip to content

Commit

Permalink
Set OPAMERRLOGLEN=0 in generated images
Browse files Browse the repository at this point in the history
This shows the whole build log on failure, which is useful for CI.
  • Loading branch information
talex5 committed Aug 12, 2019
1 parent b42a0b0 commit a603e80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pipeline.ml
Expand Up @@ -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" ()
Expand Down

0 comments on commit a603e80

Please sign in to comment.