aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 338d394d3f167f5cf2a090fca74dcfaf2b1588bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: haskell

env:
 - GHCVER=7.8.3

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update
 - sudo apt-get install ghc-$GHCVER
 - export PATH=/opt/ghc/$GHCVER/bin:$PATH
 - cd haddock-library
 - cabal install --only-dependencies --enable-tests
 - cabal install doctest
 - cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test
 - doctest -isrc -i$(echo vendor/attoparsec-*) -optP-include -optPdist/build/autogen/cabal_macros.h src/Documentation/Haddock/Parser.hs
 - cabal install
 - cd ..

script:
 - cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test