@@ -1,5 +1,9 @@
1# See https://github.com/hvr/multi-ghc-travis
1# See https://github.com/hvr/multi-ghc-travis
2# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
2# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
4 - GHCVER=7.6.2 CABALVER=1.16
8 - GHCVER=7.6.2 CABALVER=1.16
5 - GHCVER=7.6.3 CABALVER=1.16
9 - GHCVER=7.6.3 CABALVER=1.16
@@ -19,8 +23,21 @@ before_install:
19 - cabal --version
23 - cabal --version
22− - travis_retry cabal update
26+ - cabal update
27+ - cabal install --only-dependencies
25− - travis_retry cabal configure
30+ - cabal configure -v2
26− - travis_retry cabal build
31+ - cabal build
35+# The following scriptlet checks that the resulting source distribution can be built & installed
36+ - export SRC_TGZ=$(cabal-$CABALVER info . | awk '{print $2 ".tar.gz";exit}') ;
38+ if [ -f "$SRC_TGZ" ]; then
39+ cabal install "$SRC_TGZ";
41+ echo "expected '$SRC_TGZ' not found";