@@ -1,19 +1,24 @@
11# NB: don't set `language: haskell` here
22
3+# Ensures that sudo is disabled, so that containerized builds are allowed
4+sudo: false
5+
36# 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−env:
5−# - GHCVER=6.12.3
6− - CABALVER=1.16 GHCVER=7.4.2 GHCOPTS="-Werror"
7− - CABALVER=1.18 GHCVER=7.6.3 GHCOPTS="-Werror"
8− - CABALVER=1.18 GHCVER=7.8.4 GHCOPTS="-Werror" # see note on Alex/Happy
9− - CABALVER=1.22 GHCVER=7.10.1 GHCOPTS=""
10−# - GHCVER=head # see section about GHC HEAD snapshots
7+matrix:
8+ include:
9+ - env: CABALVER=1.16 GHCVER=7.4.2 GHCOPTS="-Werror"
10+ addons: {apt: {packages: [cabal-install-1.16, ghc-7.4.2], sources: [hvr-ghc]}}
11+ - env: CABALVER=1.18 GHCVER=7.6.3 GHCOPTS="-Werror"
12+ addons: {apt: {packages: [cabal-install-1.18, ghc-7.6.3], sources: [hvr-ghc]}}
13+ - env: CABALVER=1.18 GHCVER=7.8.4 GHCOPTS="-Werror"
14+ addons: {apt: {packages: [cabal-install-1.18, ghc-7.8.4], sources: [hvr-ghc]}}
15+ - env: CABALVER=1.22 GHCVER=7.10.1 GHCOPTS=""
16+ addons: {apt: {packages: [cabal-install-1.22, ghc-7.10.1],sources: [hvr-ghc]}}
17+# - env: CABALVER=head GHCVER=head GHCOPTS="-Werror"
18+# addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
1119
1220# Note: the distinction between `before_install` and `install` is not important.
1321before_install:
14− - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
15− - travis_retry sudo apt-get update
16− - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
1722 - export PATH=/opt/ghc/$GHCVER/bin:$PATH
1823
1924install: