[commit: packages/bytestring] 0.10.4.x, master: Use --show-details=streaming when available (a562ab2)
git at git.haskell.org
git at git.haskell.org
Fri Jan 23 22:42:48 UTC 2015
Repository : ssh://git@git.haskell.org/bytestring
On branches: 0.10.4.x,master
Link : http://git.haskell.org/packages/bytestring.git/commitdiff/a562ab285eb8e9ffd51de104f88389ac125aa833
>---------------------------------------------------------------
commit a562ab285eb8e9ffd51de104f88389ac125aa833
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sat Jun 7 12:04:19 2014 +0200
Use --show-details=streaming when available
Travis-CI assumes the build to be stuck if there's no output for several
minutes. Which is a problem since the tests for bytestring take quite
long.
>---------------------------------------------------------------
a562ab285eb8e9ffd51de104f88389ac125aa833
.travis.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 67126bd..1b738ab 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,7 +28,12 @@ install:
script:
- cabal configure --enable-tests -v2
- cabal build
- - cabal test --show-details=always
+ # --show-details=streaming is available for CABALVER>=1.20 only
+ - if [ "$(echo -e "1.20\n$CABALVER" | sort -rV | head -n1)" = "$CABALVER" ]; then
+ cabal test --show-details=streaming;
+ else
+ cabal test --show-details=always;
+ fi
- cabal sdist
# "cabal check" disabled due to -O2 warning
- export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
More information about the ghc-commits
mailing list