aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 7fb97c8e8840e37ad59412f09700ab46db61f10e (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
sudo: false

matrix:
  include:
    - env: CABALVER=head GHCVER=head
      addons: {apt: {packages: [cabal-install-head,ghc-head],  sources: [hvr-ghc]}}

  allow_failures:
    - env: CABALVER=head GHCVER=head

before_install:
 - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
 - cabal --version
 - cabal update
 - 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