aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: c16b1709629902c281417ff2b96b6b058c67eabc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: haskell

env:
 # - GHCVER=7.8.2
 # - GHCVER=7.8.3
 - GHCVER=7.10.2

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
 - sudo apt-get install cabal-install-1.22
 - export PATH=/opt/cabal/1.22/bin:$PATH
 - cabal --version
 - cd haddock-library
 - cabal install --only-dependencies --enable-tests
 - cabal install doctest
 # --ghc-options=-Werror
 - cabal configure --enable-tests && 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 ..
 - (cd haddock-api/ && cabal install --only-dependencies --enable-tests && cabal configure --enable-tests && cabal build && cabal test && cabal install)

script:
 - cabal configure --enable-tests && cabal build && cabal test