No Description
haskell

.travis.yml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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=1.18 GHCVER=7.6.3
  8. addons: {apt: {packages: [cabal-install-1.18,ghc-7.6.3], sources: [hvr-ghc]}}
  9. - env: CABALVER=1.22 GHCVER=7.8.4
  10. addons: {apt: {packages: [cabal-install-1.22,ghc-7.8.4], sources: [hvr-ghc]}}
  11. - env: CABALVER=1.24 GHCVER=7.10.2
  12. addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.2], sources: [hvr-ghc]}}
  13. - env: CABALVER=1.24 GHCVER=8.0.1
  14. addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1], sources: [hvr-ghc]}}
  15. - env: CABALVER=2.0 GHCVER=8.2.2
  16. addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2], sources: [hvr-ghc]}}
  17. - env: CABALVER=2.2 GHCVER=8.4.1
  18. addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.1], sources: [hvr-ghc]}}
  19. - env: CABALVER=head GHCVER=head
  20. addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
  21. allow_failures:
  22. - env: CABALVER=head GHCVER=head
  23. env:
  24. global:
  25. - secure: q++z4DGwOHYjmed00oxMnGhBTzOBzKYunXvVcnCEmvmzW3qZERtXj3B7CLW4vRtmBlo3SiM0fb25NeYao+ByzTjo8jk9noiBVZvffwRmlKCeVwYx7T4/rsDhfV97k2JOeahBSgxWNuTkt+5gv07HpKdTiIxJsiv/QdBxQeq6/Ly6dyRskmCt+VuFvQg+cqPMugxIXtY6F7eZ1zgl/LxlamWjO3E4lX0Myf4o8+SU1HRDVkkVe+ytnRcVcYI2FHuFV/sSoDMTweXQToA9roVjOkfhq4rGlPCuXJkBPyZW2otLXgAV7I2kjwgxqmS5Yw752CcFjMMbG6R1u8sEAcGrJNKHfx8sKqBwI0AVoq4CJn+nKSElTDl0KI1mqazmazK4/mddkD9NGIVXCFmw4b+YGf1uDj8FAR94UmOiEFkEObGkQxG1XK/uzDaUJ1tO3MYXjPPEIE89BJORo+ZskmKFEoqbrBR/vEjbXxJHWP7SaaoM+mWpMiSssEFb/Z5mDBFPb2P/2f7nO4ZDfOYp/9hZdBvDaVM8FmTQfzF6jIUIOFmeeiSZWIBAHoDfdZDRrM/hC5JzqfMumW9frwllsQtYytkAsUqlNnCW86jlc5/5L6D8eY2NERFI2DRqrBi7bP2AfYXsozY0gMO1RL5+iQSQVKlPhk6IyAJYCWCYnrA+dz4=
  26. before_install:
  27. - sudo apt-get install -y hscolour
  28. - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
  29. install:
  30. - cabal --version
  31. - travis_retry cabal update
  32. - cabal sandbox init
  33. - cabal install --only-dependencies --enable-tests -j
  34. script:
  35. - cabal configure --enable-tests -v2
  36. - cabal build
  37. - cabal test
  38. - cabal check
  39. - cabal sdist
  40. - cabal haddock --hyperlink-source --html-location=https://hackage.haskell.org/package/\$pkg-\$version/docs/
  41. # check that the generated source-distribution can be built & installed
  42. - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
  43. cd dist/;
  44. cabal sandbox init;
  45. if [ -f "$SRC_TGZ" ]; then
  46. cabal install "$SRC_TGZ" --enable-tests;
  47. else
  48. echo "expected '$SRC_TGZ' not found";
  49. exit 1;
  50. fi;
  51. cd ..
  52. after_script:
  53. - ./update-gh-pages.sh
  54. notifications:
  55. email:
  56. - hasufell@posteo.de