Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (54 sloc) 1.911 kb
bb720e5 @hvr Enhance Travis-CI job to test GHC>=7.0
hvr authored
1 # NB: don't set `language: haskell` here
2
3 # See also https://github.com/hvr/multi-ghc-travis for more information
4 env:
5 - GHCVER=7.0.4 CABALVER=1.16
6 # we have to use CABALVER=1.16 for GHC<7.6 as well, as there's
7 # no package for earlier cabal versions in the PPA
8 - GHCVER=7.4.2 CABALVER=1.16
9 - GHCVER=7.6.3 CABALVER=1.16
8861b95 @ekmett add explicit 7.10.1 testing, upgrade 7.8.x target to 7.8.4
authored
10 - GHCVER=7.8.4 CABALVER=1.18
9a7e72f @ekmett use cabal 1.22?
authored
11 - GHCVER=7.10.1 CABALVER=1.22
bb720e5 @hvr Enhance Travis-CI job to test GHC>=7.0
hvr authored
12 # NOTE: we can't use Cabal 1.20 yet due to
13 # https://github.com/haskell/cabal/issues/1806
9a7e72f @ekmett use cabal 1.22?
authored
14 - GHCVER=head CABALVER=1.22
bb720e5 @hvr Enhance Travis-CI job to test GHC>=7.0
hvr authored
15
16 matrix:
17 allow_failures:
9a7e72f @ekmett use cabal 1.22?
authored
18 - env: GHCVER=head CABALVER=1.22
bb720e5 @hvr Enhance Travis-CI job to test GHC>=7.0
hvr authored
19
20 # Note: the distinction between `before_install` and `install` is not
21 # important.
22 before_install:
23 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
24 - travis_retry sudo apt-get update
25 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
26 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
27 - cabal --version
28
29 install:
30 - travis_retry cabal update
31 - cabal install --only-dependencies
32
33 # Here starts the actual work to be performed for the package under
34 # test; any command which exits with a non-zero exit code causes the
35 # build to fail.
36 script:
37 # -v2 provides useful information for debugging
38 - cabal configure -v2
39
40 # this builds all libraries and executables
41 # (including tests/benchmarks)
42 - cabal build
43
44 # tests that a source-distribution can be generated
45 - cabal sdist
46
47 # check that the generated source-distribution can be built & installed
48 - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
49 cd dist/;
50 if [ -f "$SRC_TGZ" ]; then
51 cabal install --force-reinstalls "$SRC_TGZ";
52 else
53 echo "expected '$SRC_TGZ' not found";
54 exit 1;
55 fi
56
6a48bc1 @ekmett update .travis.yml to notify IRC
authored
57 notifications:
58 irc:
59 channels:
60 - "irc.freenode.org#haskell-lens"
61 skip_join: true
62 template:
63 - "\x0313mtl\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"
Something went wrong with that request. Please try again.