on master help sign in
Fix Cabal build (#5)
5e93707Mark Karpov
.travis.yml+7−10
@@ -4,14 +4,14 @@ sudo: false
4
4
5matrix:
5matrix:
6 include:
6 include:
7− - env: CABALVER=1.18 GHCVER=7.8.4
7+ - env: CABALVER=1.24 GHCVER=7.8.4
8− addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,libflac-dev], sources: [hvr-ghc]}}
8+ addons: {apt: {packages: [cabal-install-1.24,ghc-7.8.4], sources: [hvr-ghc]}}
9− - env: CABALVER=1.22 GHCVER=7.10.3
9+ - env: CABALVER=1.24 GHCVER=7.10.3
10− addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,libflac-dev],sources: [hvr-ghc]}}
10+ addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.3],sources: [hvr-ghc]}}
11 - env: CABALVER=1.24 GHCVER=8.0.1
11 - env: CABALVER=1.24 GHCVER=8.0.1
12− addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1,libflac-dev],sources: [hvr-ghc]}}
12+ addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1],sources: [hvr-ghc]}}
13 - env: CABALVER=head GHCVER=head
13 - env: CABALVER=head GHCVER=head
14− addons: {apt: {packages: [cabal-install-head,ghc-head,libflac-dev], sources: [hvr-ghc]}}
14+ addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
15
15
16 allow_failures:
16 allow_failures:
17 - env: CABALVER=head GHCVER=head
17 - env: CABALVER=head GHCVER=head
@@ -26,10 +26,7 @@ install:
26 - cabal install --only-dependencies --enable-tests
26 - cabal install --only-dependencies --enable-tests
27
27
28script:
28script:
29− - case "$CABALVER" in
30− "1.18") cabal configure --enable-tests --enable-library-coverage -v2 -f dev ;;
31− *) cabal configure --enable-tests --enable-coverage -v2 -f dev ;;
29+ - cabal configure --enable-tests --enable-coverage -v2 -f dev
32− esac
33 - cabal build
30 - cabal build
34 - cabal test --show-details=always
31 - cabal test --show-details=always
35 - cabal sdist
32 - cabal sdist
req.cabal+2−2
@@ -71,7 +71,7 @@ library
71 , http-types >= 0.8 && < 10.0
71 , http-types >= 0.8 && < 10.0
72 , mtl >= 2.0 && < 3.0
72 , mtl >= 2.0 && < 3.0
73 , text >= 0.2 && < 1.3
73 , text >= 0.2 && < 1.3
74− , time >= 1.2 && < 1.7
74+ , time >= 1.2 && < 1.8
75 , transformers >= 0.4 && < 0.6
75 , transformers >= 0.4 && < 0.6
76 if !impl(ghc >= 8.0)
76 if !impl(ghc >= 8.0)
77 build-depends: semigroups == 0.18.*
77 build-depends: semigroups == 0.18.*
@@ -100,7 +100,7 @@ test-suite pure-tests
100 , mtl >= 2.0 && < 3.0
100 , mtl >= 2.0 && < 3.0
101 , req >= 0.1.0
101 , req >= 0.1.0
102 , text >= 0.2 && < 1.3
102 , text >= 0.2 && < 1.3
103− , time >= 1.2 && < 1.7
103+ , time >= 1.2 && < 1.8
104 if flag(dev)
104 if flag(dev)
105 ghc-options: -Wall -Werror
105 ghc-options: -Wall -Werror
106 else
106 else