@@ -1,27 +1,45 @@
1−# Based on https://github.com/hvr/multi-ghc-travis and https://github.com/ekmett/lens/blob/master/.travis.yml
1+sudo: false
3−# NB: don't set `language: haskell` here
3+matrix:
5−# 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.
5+ - env: GHC_VERSION=7.10.1
7− - CABALVER=1.18 GHCVER=7.6.3
7+ apt:
8− - CABALVER=1.18 GHCVER=7.8.3
8+ sources:
9− - CABALVER=1.22 GHCVER=7.10.1
9+ - hvr-ghc
12−# Note: the distinction between `before_install` and `install` is not important.
12+ - cabal-install-1.22
13−before_install:
13+ - happy
14− - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
14+ - alex
15− - travis_retry sudo apt-get update
15+ before_install:
16− - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
16+ - export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
17+ - env: GHC_VERSION=7.8.3
17− - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
28+ - export PATH=/opt/ghc/7.8.3/bin:/opt/cabal/1.18/bin:$PATH
18− - |
29+ - export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
19− if [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
30+ - env: GHC_VERSION=7.6.3
20− travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
31+ addons:
41+ - export PATH=/opt/ghc/7.6.3/bin:/opt/cabal/1.18/bin:$PATH
21− export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
42+ - export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
23− travis_retry sudo apt-get install happy alex