[opam-commits] Errored: dra27/opam#53 (test-color - a328170)

Travis CI builds at travis-ci.org
Fri Jan 5 16:22:10 GMT 2018

Build Update for dra27/opam

Build: #53
Status: Errored

Duration: 53 minutes and 0 seconds
Commit: a328170 (test-color)
Author: David Allsopp
Message: Support coloured output for Windows console

Prior to Windows 10 1511, the Windows Console didn't natively support ANSI
escape sequences, but it does include API functions providing most of the
required support. In order to maintain the option of compiling with MSVC,
a custom wrapper is implemented for the small number of required escape
sequences, rather than using Cygwin or MSYS's ANSI layer.

The need to post-process coloured messages means that the format
signatures of various functions in OpamConsole have changed from printf
to sprintf form and it is imperative that all output to the Console
which includes coloured text goes through one of OpamConsole's functions
(in particular, print_string, Printf.printf, output_string std* must not
be used).

Particular care has been taken to ensure that OpamConsole.log and
OpamConsole.slog behave in the same way; specifically this means that
strings logged should never include ANSI escape sequences because these
cannot be translated.

(note that an earlier attempt at doing this used a pipe to write the
data via kfprintf in order to maintain the same %a behaviour and then read
the string back from the pipe, but this leads to problems if the data being
written is larger than the pipe's buffer and it seems excessive to
introduce multi-threading or two processes solely to handle debugging
console output)

Signed-off-by: David Allsopp <david.allsopp at metastack.com>

View the changeset: https://github.com/dra27/opam/compare/8e422f3cd268...a328170227a7

View the full build log and details: https://travis-ci.org/dra27/opam/builds/325484385?utm_source=email&utm_medium=notification


You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-commits/attachments/20180105/76fe0beb/attachment-0001.html>

More information about the Opam-commits mailing list