You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
1.0 KiB

  1. # See https://github.com/hvr/multi-ghc-travis for more information
  2. language: c
  3. sudo: required
  4. dist: trusty
  5. matrix:
  6. include:
  7. - env: CABALVER=3.0 GHCVER=8.6.5
  8. addons: {apt: {packages: [cabal-install-3.0,ghc-8.6.5], sources: [hvr-ghc]}}
  9. - env: CABALVER=3.0 GHCVER=8.8.1
  10. addons: {apt: {packages: [cabal-install-3.0,ghc-8.8.1], sources: [hvr-ghc]}}
  11. - env: CABALVER=head GHCVER=head
  12. addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
  13. allow_failures:
  14. - env: CABALVER=head GHCVER=head
  15. before_install:
  16. - sudo apt-get install -y hscolour
  17. - export PATH=~/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
  18. install:
  19. - cabal --version
  20. - travis_retry cabal update
  21. - cabal install --installdir=$HOME/.cabal/bin hspec-discover
  22. script:
  23. - cabal build --enable-tests all
  24. - cabal test all
  25. - cabal haddock --haddock-hyperlink-source --haddock-html-location=https://hackage.haskell.org/package/\$pkg-\$version/docs/ all
  26. # - cabal install --lib all
  27. notifications:
  28. email:
  29. - hasufell@posteo.de