Closed romanofski closed 4 years ago
heh jeez... cabal.. why are the arguments so different :)
Updated commit message:
travis: Stream test progress
This streams the test output to the console in CI. This may be a solution for #321 if the underlying cause is that no test output is directed to stdout until the test command finishes.
If however the cause is something different, this patch may at least shed some light into why CI kill's the job without output for 10min.
This patch comes with a small caveat tho. We default to the new-test
command. However, streaming support existed for older cabal versions
provided by the test command. Newer cabal versions (>= 3) provide the
streaming support with the v2-test --test-show-details
command. This
is not supported with previous cabal-install releases. The old test
command in return does not understand the --enable-tests
and
--enable-benchmarks
options.
So to accommodate all, cabal-install for GHC 8.4.4 and 8.6.5 won't be able to run any benchmarks in case they're enabled by environment variable. Since we will probably drop those versions soon anyway, a small sacrifice to make.
Relates to https://github.com/purebred-mua/purebred/issues/321
This streams the test output to the console in CI. This may be a solution for #321 if the underlying cause is that the test run blocks for whatever reason until it finishes.
If however the cause is something different, this patch may at least shed some light into why CI kill's the job without output for 10min.
Relates to https://github.com/purebred-mua/purebred/issues/321