diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c9cff9a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +env: + - GHCVER=7.4.2 + - GHCVER=7.6.3 + - GHCVER=7.8.2 + - GHCVER=head + +matrix: + allow_failures: + - env: GHCVER=head + +before_install: + - sudo add-apt-repository -y ppa:hvr/ghc + - sudo apt-get update + - sudo apt-get install cabal-install-1.18 ghc-$GHCVER + - export PATH=/opt/ghc/$GHCVER/bin:$PATH + +install: + - cabal-1.18 update + - cabal-1.18 install --only-dependencies --enable-tests; + +script: + - cabal-1.18 configure --enable-tests -v2 + - cabal-1.18 build + - cabal-1.18 test + - cabal-1.18 check + - cabal-1.18 sdist diff --git a/README.md b/README.md index 8cfb462..57ec9dc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ cryptonite ========== +[![Build Status](https://travis-ci.org/vincenthz/cryptonite.png?branch=master)](https://travis-ci.org/vincenthz/cryptonite) +[![BSD](http://b.repl.ca/v1/license-BSD-blue.png)](http://en.wikipedia.org/wiki/BSD_licenses) +[![Haskell](http://b.repl.ca/v1/language-haskell-lightgrey.png)](http://haskell.org) + Cryptonite is a haskell repository of cryptographic primitives. Each crypto algorithm have specificities, that are hard to wrap in common APIs and types, so instead of trying to provide a common ground for algorithms that wouldn't diff --git a/cryptonite.cabal b/cryptonite.cabal index a46d315..5b3df9c 100644 --- a/cryptonite.cabal +++ b/cryptonite.cabal @@ -11,6 +11,7 @@ Category: Cryptography Stability: experimental Build-Type: Simple Homepage: https://github.com/vincenthz/cryptonite +Bug-reports: https://github.com/vincenthz/cryptonite/issues Cabal-Version: >=1.10 extra-source-files: README.md cbits/*.h @@ -42,7 +43,6 @@ Test-Suite test-cryptonite Build-Depends: base >= 3 && < 5 , bytestring , byteable - , mtl , tasty , tasty-quickcheck , tasty-hunit diff --git a/tests/KATSalsa.hs b/tests/KATSalsa.hs index 101de7a..4670165 100644 --- a/tests/KATSalsa.hs +++ b/tests/KATSalsa.hs @@ -2,6 +2,7 @@ module KATSalsa (vectors) where import qualified Data.ByteString as B +import Data.ByteString.Char8 () key :: B.ByteString key = "\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09" diff --git a/tests/Tests.hs b/tests/Tests.hs index 0e3bfd3..ff3b52d 100644 --- a/tests/Tests.hs +++ b/tests/Tests.hs @@ -5,6 +5,7 @@ import Control.Applicative import Data.Byteable import Data.ByteString (ByteString) import qualified Data.ByteString as B +import Data.ByteString.Char8 () import Test.Tasty import Test.Tasty.QuickCheck import Test.Tasty.HUnit