aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJulien Tanguy <julien.tanguy@jhome.fr>2015-05-06 11:38:27 +0200
committerJulien Tanguy <julien.tanguy@jhome.fr>2015-05-06 11:38:27 +0200
commitd41449d7b93adcfd7ffd5c21c355d9ed381cf3ff (patch)
treea2404823c954a8965c9ca1c397a5a7e1531f2c3b
parent7001a61e8fa105cd51715e471d0a682bf23528fd (diff)
downloadhmacaroons-d41449d7b93adcfd7ffd5c21c355d9ed381cf3ff.tar.gz
hmacaroons-d41449d7b93adcfd7ffd5c21c355d9ed381cf3ff.tar.zst
hmacaroons-d41449d7b93adcfd7ffd5c21c355d9ed381cf3ff.zip
Edit travis config and package deps to match nixos'
-rw-r--r--.travis.yml49
-rw-r--r--default.nix6
-rw-r--r--hmacaroons.cabal1
3 files changed, 52 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 999bd37..a4d9702 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1 +1,48 @@
1language: haskell 1# NB: don't set `language: haskell` here
2language: c
3
4# See also https://github.com/hvr/multi-ghc-travis for more information
5
6# The following lines enable several GHC versions and/or HP versions
7# to be tested; often it's enough to test only against the last
8# release of a major GHC version. Setting HPVER implictly sets
9# GHCVER. Omit lines with versions you don't need/want testing for.
10env:
11 - CABALVER=1.22 GHCVER=7.10.1
12
13# Note: the distinction between `before_install` and `install` is not
14# important.
15before_install:
16 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
17 - travis_retry sudo apt-get update
18 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
19 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
20
21install:
22 - cabal --version
23 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
24 - travis_retry cabal update
25 - cabal install --only-dependencies --enable-tests --enable-benchmarks
26
27# Here starts the actual work to be performed for the package under
28# test; any command which exits with a non-zero exit code causes the
29# build to fail.
30script:
31 # -v2 provides useful information for debugging
32 - cabal configure --enable-tests --enable-benchmarks -v2
33
34 # this builds all libraries and executables
35 # (including tests/benchmarks)
36 - cabal build
37
38 - cabal test
39 - cabal check
40
41 # tests that a source-distribution can be generated
42 - cabal sdist
43
44 # check that the generated source-distribution can be built & installed
45 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
46 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
47
48# EOF
diff --git a/default.nix b/default.nix
index 10ee0b9..b9cfdb7 100644
--- a/default.nix
+++ b/default.nix
@@ -1,6 +1,6 @@
1{ mkDerivation, attoparsec, base, base64-bytestring, byteable 1{ mkDerivation, attoparsec, base, base64-bytestring, byteable
2, bytestring, cereal, cipher-aes, cryptohash, deepseq, hex, stdenv 2, bytestring, cereal, cipher-aes, cryptohash, deepseq, hex
3, tasty, tasty-hunit, tasty-quickcheck 3, QuickCheck, stdenv, tasty, tasty-hunit, tasty-quickcheck
4}: 4}:
5mkDerivation { 5mkDerivation {
6 pname = "hmacaroons"; 6 pname = "hmacaroons";
@@ -12,7 +12,7 @@ mkDerivation {
12 ]; 12 ];
13 testDepends = [ 13 testDepends = [
14 attoparsec base base64-bytestring byteable bytestring cereal 14 attoparsec base base64-bytestring byteable bytestring cereal
15 cryptohash hex tasty tasty-hunit tasty-quickcheck 15 cryptohash hex QuickCheck tasty tasty-hunit tasty-quickcheck
16 ]; 16 ];
17 homepage = "https://github.com/jtanguy/hmacaroons"; 17 homepage = "https://github.com/jtanguy/hmacaroons";
18 description = "Haskell implementation of macaroons"; 18 description = "Haskell implementation of macaroons";
diff --git a/hmacaroons.cabal b/hmacaroons.cabal
index 5590af6..41020ca 100644
--- a/hmacaroons.cabal
+++ b/hmacaroons.cabal
@@ -115,4 +115,5 @@ test-suite test
115 tasty >= 0.10, 115 tasty >= 0.10,
116 tasty-hunit >= 0.9, 116 tasty-hunit >= 0.9,
117 tasty-quickcheck >= 0.8, 117 tasty-quickcheck >= 0.8,
118 QuickCheck < 2.8,
118 hmacaroons 119 hmacaroons