.travis.yml 1.1 KB
Newer Older
1
env:
judah's avatar
judah committed
2
3
 - GHCVER=7.0.1 CABALVER=1.16
 - GHCVER=7.0.2 CABALVER=1.16
judah's avatar
judah committed
4
 - GHCVER=7.0.3 CABALVER=1.16
judah's avatar
judah committed
5
6
7
8
9
10
11
12
 - GHCVER=7.0.4 CABALVER=1.16
 - GHCVER=7.2.1 CABALVER=1.18
 - GHCVER=7.2.2 CABALVER=1.18
 - GHCVER=7.4.1 CABALVER=1.18
 - GHCVER=7.4.2 CABALVER=1.18
 - GHCVER=7.6.1 CABALVER=1.18
 - GHCVER=7.6.2 CABALVER=1.18
 - GHCVER=7.6.3 CABALVER=1.18
13
14
15
16

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update
judah's avatar
judah committed
17
 - sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
18
19
20
 - export PATH=/opt/ghc/$GHCVER/bin:$PATH

install:
judah's avatar
judah committed
21
22
 - cabal-$CABALVER update
 - cabal-$CABALVER install --only-dependencies
judah's avatar
judah committed
23
 - cabal-$CABALVER install "Cabal >= $CABALVER"
24
25
26
 - ghc --version

script:
judah's avatar
judah committed
27
28
29
30
 - cabal-$CABALVER configure -v2
 - cabal-$CABALVER build -v2
 - cabal-$CABALVER check
 - cabal-$CABALVER sdist
31
# The following scriptlet checks that the resulting source distribution can be built & installed
judah's avatar
judah committed
32
 - export SRC_TGZ=$(cabal-$CABALVER info . | awk '{print $2 ".tar.gz";exit}') ;
33
34
   cd dist/;
   if [ -f "$SRC_TGZ" ]; then
judah's avatar
judah committed
35
      cabal-$CABALVER install "$SRC_TGZ";
36
37
38
39
   else
      echo "expected '$SRC_TGZ' not found";
      exit 1;
   fi