diff options
author | Julien Tanguy <julien.tanguy@jhome.fr> | 2015-08-17 16:53:33 +0200 |
---|---|---|
committer | Julien Tanguy <julien.tanguy@jhome.fr> | 2015-08-17 16:53:33 +0200 |
commit | 8872c6ad5cc057023b94f4c2561801849159afa1 (patch) | |
tree | eeff76e5db7ad8a0625719d249a01cdf2d901e1e | |
parent | e82b552f09763f0f21bbbf6dcf71936211b16e1a (diff) | |
download | hmacaroons-8872c6ad5cc057023b94f4c2561801849159afa1.tar.gz hmacaroons-8872c6ad5cc057023b94f4c2561801849159afa1.tar.zst hmacaroons-8872c6ad5cc057023b94f4c2561801849159afa1.zip |
Handle different flags for 'cabal test'
Cabal 1.18 does not handle --show-details=streaming
-rw-r--r-- | .travis.yml | 9 |
1 files 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 @@ | |||
1 | # See also https://github.com/hvr/multi-ghc-travis for more information | ||
1 | language: c | 2 | language: c |
2 | 3 | ||
3 | sudo: false | 4 | sudo: false |
@@ -8,11 +9,11 @@ sudo: false | |||
8 | # GHCVER. Omit lines with versions you don't need/want testing for. | 9 | # GHCVER. Omit lines with versions you don't need/want testing for. |
9 | matrix: | 10 | matrix: |
10 | include: | 11 | include: |
11 | - env: CABALVER=1.18 GHCVER=7.8.4 | 12 | - env: CABALVER=1.18 GHCVER=7.8.4 CTOPTS="" |
12 | addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}} | 13 | addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}} |
13 | - env: CABALVER=1.22 GHCVER=7.10.1 | 14 | - env: CABALVER=1.22 GHCVER=7.10.1 CTOPTS="--show-details=streaming" |
14 | addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1],sources: [hvr-ghc]}} | 15 | addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1],sources: [hvr-ghc]}} |
15 | - env: CABALVER=head GHCVER=head | 16 | - env: CABALVER=head GHCVER=head CTOPTS="--show-details=streaming" |
16 | addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}} | 17 | addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}} |
17 | 18 | ||
18 | allow_failures: | 19 | allow_failures: |
@@ -32,7 +33,7 @@ script: | |||
32 | - cabal configure --enable-tests --enable-benchmarks -v2 | 33 | - cabal configure --enable-tests --enable-benchmarks -v2 |
33 | - cabal build | 34 | - cabal build |
34 | 35 | ||
35 | - cabal test --show-details=streaming | 36 | - cabal test $CTOPTS |
36 | 37 | ||
37 | - cabal check | 38 | - cabal check |
38 | 39 | ||