]> git.immae.eu Git - github/fretlink/hmacaroons.git/commitdiff
Handle different flags for 'cabal test'
authorJulien Tanguy <julien.tanguy@jhome.fr>
Mon, 17 Aug 2015 14:53:33 +0000 (16:53 +0200)
committerJulien Tanguy <julien.tanguy@jhome.fr>
Mon, 17 Aug 2015 14:53:33 +0000 (16:53 +0200)
Cabal 1.18 does not handle --show-details=streaming

.travis.yml

index 81c5f5cb993b14694fc101b00368c9b232584255..618741d7f17340887c9c409f16006c53953c698a 100644 (file)
@@ -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