Skip to content
Newer
Older
100644 30 lines (25 sloc) 1.4 KB
916d4d9 @kazu-yamamoto using hvr ghc.
authored
1 # NB: don't set `language: haskell` here
2
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.
4 env:
5 - CABALVER=1.18 GHCVER=7.6.3
6 - CABALVER=1.18 GHCVER=7.8.4
7 - CABALVER=1.22 GHCVER=7.10.2
8 - CABALVER=head GHCVER=head # see section about GHC HEAD snapshots
9
10 # Note: the distinction between `before_install` and `install` is not important.
11 before_install:
12 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
13 - travis_retry sudo apt-get update
14 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
15 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
16
17 install:
18 - cabal --version
19 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
20 - travis_retry cabal update
21 - cabal install --only-dependencies --enable-tests --enable-benchmarks
22
23 # Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
24 script:
25 - if [ -f configure.ac ]; then autoreconf -i; fi
26 - cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
27 - cabal build # this builds all libraries and executables (including tests/benchmarks)
28 - cabal test
29 - cabal check
Something went wrong with that request. Please try again.