git.iko.soy/typeable/pandoc
on issue1234 help sign in
typeable/pandoc/.travis.yml
33 lines 1.5 kB history raw
1# 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.
4env:
5# - GHCVER=6.12.3
6 - GHCVER=7.4.2
7 - GHCVER=7.6.3
8 - GHCVER=7.8.1 # see note about Alex/Happy
9# - GHCVER=head # see section about GHC HEAD snapshots
11# Note: the distinction between `before_install` and `install` is not important.
12before_install:
13 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
14 - travis_retry sudo apt-get update
15 - travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER alex happy
16 - export PATH=/opt/ghc/$GHCVER/bin:$PATH
18install:
19 - cabal-1.18 update
20 - |
21 if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.1" ]; then
22 cabal-1.18 install happy alex
23 export PATH=$HOME/.cabal/bin:$PATH
24 fi
25# - git clone https://github.com/jgm/pandoc-types && cd pandoc-types && cabal-1.18 install && cd ..
26 - cabal-1.18 install --only-dependencies --enable-tests
28# 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.
29script:
30 - cabal-1.18 configure --enable-tests -v2 # -v2 provides useful information for debugging
31 - cabal-1.18 build --ghc-options=-Werror # this builds all libraries and executables (including tests/benchmarks)
32 - cabal-1.18 test
33 - cabal-1.18 check