From 8872c6ad5cc057023b94f4c2561801849159afa1 Mon Sep 17 00:00:00 2001 From: Julien Tanguy Date: Mon, 17 Aug 2015 16:53:33 +0200 Subject: [PATCH] Handle different flags for 'cabal test' Cabal 1.18 does not handle --show-details=streaming --- .travis.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 81c5f5c..618741d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +# See also https://github.com/hvr/multi-ghc-travis for more information language: c sudo: false @@ -8,11 +9,11 @@ sudo: false # GHCVER. Omit lines with versions you don't need/want testing for. matrix: include: - - env: CABALVER=1.18 GHCVER=7.8.4 + - env: CABALVER=1.18 GHCVER=7.8.4 CTOPTS="" addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}} - - env: CABALVER=1.22 GHCVER=7.10.1 + - env: CABALVER=1.22 GHCVER=7.10.1 CTOPTS="--show-details=streaming" addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1],sources: [hvr-ghc]}} - - env: CABALVER=head GHCVER=head + - env: CABALVER=head GHCVER=head CTOPTS="--show-details=streaming" addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}} allow_failures: @@ -32,7 +33,7 @@ script: - cabal configure --enable-tests --enable-benchmarks -v2 - cabal build - - cabal test --show-details=streaming + - cabal test $CTOPTS - cabal check -- 2.41.0