Skip to content
Snippets Groups Projects
Commit 373f21c6 authored by Simon Hengel's avatar Simon Hengel
Browse files

Fix travis builds

parent 4f171931
No related branches found
No related tags found
No related merge requests found
language: haskell language: haskell
notifications:
email:
on_success: never
on_failure: change
env: env:
- GHCVER=7.4.1
- GHCVER=7.4.2
- GHCVER=7.6.3
- GHCVER=7.8.1 - GHCVER=7.8.1
- GHCVER=7.8.2 - GHCVER=7.8.2
- GHCVER=7.8.3 - GHCVER=7.8.3
- GHCVER=head
before_install: before_install:
- sudo add-apt-repository -y ppa:hvr/ghc - sudo add-apt-repository -y ppa:hvr/ghc
- sudo apt-get update - sudo apt-get update
- sudo apt-get install ghc-$GHCVER - sudo apt-get install ghc-$GHCVER
- export PATH=/opt/ghc/$GHCVER/bin:$PATH - export PATH=/opt/ghc/$GHCVER/bin:$PATH
- cd haddock-library
install: - cabal install --only-dependencies --enable-tests
- case "$GHCVER" in - cabal install doctest
"head") (cd haddock-library/ && cabal install --enable-tests - cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test
&& cd .. && cabal install --only-dependencies --enable-tests) ;; - doctest -isrc -i$(echo vendor/attoparsec-*) -optP-include -optPdist/build/autogen/cabal_macros.h src/Documentation/Haddock/Parser.hs
*) - cabal install
(cd haddock-library/ && cabal install --only-dependencies --enable-tests) ;; - cd ..
esac
script: script:
# Yes, in case of HEAD we do end up building haddock-library twice - cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test
# but we want to see the test results.
- (cd haddock-library/ && cabal configure --enable-tests --ghc-options=-Werror
&& cabal build && cabal test && cabal install && cabal install doctest
&& doctest -isrc -ivendor/attoparsec-0.10.4.0 -optP-include -optPdist/build/autogen/cabal_macros.h src/Documentation/Haddock/Parser.hs)
- case "$GHCVER" in
"head") (cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test) ;;
*) ;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment