@@ -0,0 +1,40 @@
1+# NB: don't set `language: haskell` here
2+# See https://github.com/hvr/multi-ghc-travis for more information
5+ - CABALVER=1.18 GHCVER=7.4.2
6+ - CABALVER=1.18 GHCVER=7.6.3
7+ - CABALVER=1.18 GHCVER=7.8.3
8+ - CABALVER=1.22 GHCVER=7.10.1
11+ - sudo add-apt-repository -y ppa:hvr/ghc
12+ - sudo apt-get update
13+ - sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
14+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
19+ - cabal install --only-dependencies --enable-tests --enable-benchmarks
22+ - cabal configure --enable-tests --enable-benchmarks -v2
27+# check that the generated source-distribution can be built & installed
28+ - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
31+ if [ -f "$SRC_TGZ" ]; then
32+ cabal install --force-reinstalls "$SRC_TGZ";
34+ echo "expected '$SRC_TGZ' not found";