From 61b50c735443a91afa55923c6cdcd47d8b743352 Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Sun, 25 May 2014 19:33:18 +0530 Subject: [PATCH] Added travis CI integration --- .travis.yml | 10 ++++++++++ config.cfg.template | 2 +- hask-irc-core/Setup.hs | 2 ++ hask-irc-handlers/Setup.hs | 2 ++ hask-irc-runner/Setup.hs | 2 ++ init_sanbox.sh | 4 ---- 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .travis.yml create mode 100644 hask-irc-core/Setup.hs create mode 100644 hask-irc-handlers/Setup.hs create mode 100644 hask-irc-runner/Setup.hs diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..59be953 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: haskell +ghc: 7.8 +before_install: + - ./init-sandbox.sh + - "cd hask-irc-runner" +notifications: + email: true + irc: + - "irc.immortal-anime.net#animestan" + diff --git a/config.cfg.template b/config.cfg.template index ddd362e..6af21a6 100644 --- a/config.cfg.template +++ b/config.cfg.template @@ -3,7 +3,7 @@ port = 6667 channel = "#testtesttest" nick = "haskman" timeout = 130 -msghandlers = ["greeter", "welcomer", "songsearch", "auth", "nicktracker"] +msghandlers = ["greeter", "welcomer", "messagelogger", "songsearch", "auth", "nicktracker"] songsearch { tinysong_apikey = "xxxyyyzzz" diff --git a/hask-irc-core/Setup.hs b/hask-irc-core/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/hask-irc-core/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/hask-irc-handlers/Setup.hs b/hask-irc-handlers/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/hask-irc-handlers/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/hask-irc-runner/Setup.hs b/hask-irc-runner/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/hask-irc-runner/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/init_sanbox.sh b/init_sanbox.sh index ab59ee4..a3829c1 100755 --- a/init_sanbox.sh +++ b/init_sanbox.sh @@ -16,7 +16,3 @@ cabal sandbox init --sandbox=../.cabal-sandbox cabal sandbox add-source ../hask-irc-core/ cabal sandbox add-source ../hask-irc-handlers/ cd .. - -cd hask-irc-core -cabal install -j3 --only-dependencies -cd ..