summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-03-17 08:22:04 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-03-17 08:22:04 +0100
commitffd3dd3f08de0b0db38cec0a748e04272fd59924 (patch)
tree2b3af6fc7b40c7ed5b84aefc32e193f6468a5aaf
parentc69c3bc329788069a085be6f6fc49e76a514e837 (diff)
downloadhakyll-ffd3dd3f08de0b0db38cec0a748e04272fd59924.tar.gz
Use cabal test, add travis-ci.org config
-rw-r--r--.travis.yml3
-rw-r--r--hakyll.cabal36
2 files changed, 39 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..626efd1
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,3 @@
+language: haskell
+before_script:
+ - "cabal install HUnit QuickCheck test-framework test-framework-hunit test-framework-quickcheck2"
diff --git a/hakyll.cabal b/hakyll.cabal
index 4d6772b..97e2a60 100644
--- a/hakyll.cabal
+++ b/hakyll.cabal
@@ -143,3 +143,39 @@ Library
Other-Modules:
Hakyll.Web.Preview.Poll
Hakyll.Web.Preview.Server
+
+Test-suite hakyll-tests
+ Type: exitcode-stdio-1.0
+ Hs-source-dirs: src tests
+ Main-is: TestSuite.hs
+ Ghc-options: -Wall
+
+ Build-Depends:
+ HUnit >= 1.2 && < 1.3,
+ QuickCheck >= 2.4 && < 2.5,
+ test-framework >= 0.4 && < 0.7,
+ test-framework-hunit >= 0.2 && < 0.3,
+ test-framework-quickcheck2 >= 0.2 && < 0.3,
+ -- Copy pasted from hakyll dependencies:
+ base >= 4 && < 5,
+ binary >= 0.5 && < 0.6,
+ blaze-html >= 0.4 && < 0.6,
+ bytestring >= 0.9 && < 0.10,
+ citeproc-hs >= 0.3.2 && < 0.4,
+ containers >= 0.3 && < 0.5,
+ cryptohash >= 0.7 && < 0.8,
+ directory >= 1.0 && < 1.2,
+ filepath >= 1.0 && < 1.4,
+ hamlet >= 0.10.3 && < 0.11,
+ mtl >= 1 && < 2.1,
+ old-locale >= 1.0 && < 1.1,
+ old-time >= 1.0 && < 1.2,
+ pandoc >= 1.9 && < 1.10,
+ parsec >= 3.0 && < 3.2,
+ process >= 1.0 && < 1.2,
+ regex-base >= 0.93 && < 0.94,
+ regex-tdfa >= 1.1 && < 1.2,
+ tagsoup >= 0.12.6 && < 0.13,
+ text >= 0.11 && < 0.12,
+ time >= 1.1 && < 1.5,
+ unix >= 2.4 && < 2.6