@@ -1,27 +1,18 @@
1−# Based on https://github.com/hvr/multi-ghc-travis and https://github.com/ekmett/lens/blob/master/.travis.yml
1+sudo: false
22
3−# NB: don't set `language: haskell` here
3+addons:
4+ apt:
5+ sources:
6+ - hvr-ghc
7+ packages:
8+ - ghc-7.10.1
9+ - cabal-install-1.22
10+ - happy
11+ - alex
412
5−# The following enables several GHC versions to be tested; often it's enough
6−# to test only against the last release in a major GHC version. Feel free to
7−# omit lines listings versions you don't need/want testing for.
8−env:
9− - CABALVER=1.22 GHCVER=7.10.1
1013
11−
12−# Note: the distinction between `before_install` and `install` is not important.
1314before_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 # see note about happy/alex
17− - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
18− - |
19− if [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
20− travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
21− export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
22− else
23− travis_retry sudo apt-get install happy alex
24− fi
15+- export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
2516
2617
2718install: