@@ -1,3 +1,5 @@
1+# Based on https://github.com/hvr/multi-ghc-travis and https://github.com/ekmett/lens/blob/master/.travis.yml
1# NB: don't set `language: haskell` here
3# NB: don't set `language: haskell` here
3# 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# 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.
@@ -6,6 +8,7 @@ env:
6 - CABALVER=1.18 GHCVER=7.8.3
8 - CABALVER=1.18 GHCVER=7.8.3
7 - CABALVER=1.22 GHCVER=7.10.1
9 - CABALVER=1.22 GHCVER=7.10.1
9# Note: the distinction between `before_install` and `install` is not important.
12# Note: the distinction between `before_install` and `install` is not important.
10before_install:
13before_install:
11 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
14 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
@@ -13,19 +16,19 @@ before_install:
13 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
16 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
14 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
17 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
16− if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
19+ if [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
17 travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
20 travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
18 export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
21 export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
20 travis_retry sudo apt-get install happy alex
23 travis_retry sudo apt-get install happy alex
25− - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
26− - travis_retry cabal update
27 - cabal install --only-dependencies --enable-tests
28 - cabal install --only-dependencies --enable-tests
28− - if [ -f configure.ac ]; then autoreconf -i; fi
29+
29 - cabal configure --enable-tests
32 - cabal configure --enable-tests
30 - cabal build
33 - cabal build
31 - cabal test
34 - cabal test