A simple IRC bot written in Haskell
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.travis.yml 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. language: haskell
  2. env:
  3. - CABALVER=1.18 GHCVER=7.8.4
  4. - CABALVER=1.22 GHCVER=7.10.2
  5. before_install:
  6. - |
  7. if [ $GHCVER = `ghc --numeric-version` ]; then
  8. travis/cabal-apt-install --enable-tests $MODE
  9. export CABAL=cabal
  10. else
  11. # Install the GHC we want from hvr's PPA
  12. travis_retry sudo add-apt-repository -y ppa:hvr/ghc
  13. travis_retry sudo apt-get update
  14. travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
  15. export CABAL=cabal-$CABALVER
  16. export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
  17. fi
  18. - $CABAL update
  19. - $CABAL sandbox init
  20. - cd hask-irc-core;
  21. $CABAL sandbox init --sandbox=../.cabal-sandbox;
  22. cd ../hask-irc-handlers;
  23. $CABAL sandbox init --sandbox=../.cabal-sandbox;
  24. $CABAL sandbox add-source ../hask-irc-core/;
  25. cd ../hask-irc-runner;
  26. $CABAL sandbox init --sandbox=../.cabal-sandbox;
  27. $CABAL sandbox add-source ../hask-irc-core/;
  28. $CABAL sandbox add-source ../hask-irc-handlers/;
  29. install:
  30. - $CABAL install --dependencies-only
  31. script:
  32. - $CABAL build
  33. # tests that a source-distribution can be generated
  34. - cd ../hask-irc-core;
  35. $CABAL sdist;
  36. # check that the generated source-distribution can be built & installed
  37. - export SRC_TGZ=$($CABAL info . | awk '{print $2 ".tar.gz";exit}') ;
  38. cd dist/;
  39. if [ -f "$SRC_TGZ" ]; then
  40. $CABAL install "$SRC_TGZ";
  41. else
  42. echo "expected '$SRC_TGZ' not found";
  43. exit 1;
  44. fi;
  45. cd ..;
  46. # tests that a source-distribution can be generated
  47. - cd ../hask-irc-handlers;
  48. $CABAL sdist;
  49. # check that the generated source-distribution can be built & installed
  50. - export SRC_TGZ=$($CABAL info . | awk '{print $2 ".tar.gz";exit}') ;
  51. cd dist/;
  52. if [ -f "$SRC_TGZ" ]; then
  53. $CABAL install "$SRC_TGZ";
  54. else
  55. echo "expected '$SRC_TGZ' not found";
  56. exit 1;
  57. fi;
  58. cd ..;
  59. # tests that a source-distribution can be generated
  60. - cd ../hask-irc-runner;
  61. $CABAL sdist;
  62. # check that the generated source-distribution can be built & installed
  63. - export SRC_TGZ=$($CABAL info . | awk '{print $2 ".tar.gz";exit}') ;
  64. cd dist/;
  65. if [ -f "$SRC_TGZ" ]; then
  66. $CABAL install "$SRC_TGZ";
  67. else
  68. echo "expected '$SRC_TGZ' not found";
  69. exit 1;
  70. fi
  71. notifications:
  72. email: true
  73. irc:
  74. - "irc.immortal-anime.net#animestan-hell"