.travis.yml 1.18 KB
Newer Older
judah's avatar
judah committed
1
env:
judah's avatar
judah committed
2
3
4
5
6
7
8
9
10
11
12
 - GHCVER=7.0.1 CABALVER=1.16
 - GHCVER=7.0.2 CABALVER=1.16
 - GHCVER=7.0.3 CABALVER=1.16
 - 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
 - GHCVER=7.8.1 CABALVER=1.18
 - GHCVER=7.8.2 CABALVER=1.18
 - GHCVER=7.8.3 CABALVER=1.18
judah's avatar
judah committed
16
17
18
19

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

install:
judah's avatar
judah committed
24
25
 - cabal-$CABALVER update
 - cabal-$CABALVER install --only-dependencies
26
 - cabal-$CABALVER install "Cabal == $CABALVER"
judah's avatar
judah committed
27
28
29
 - ghc --version

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