[commit: packages/binary] master: First attempt at adding Travis CI support. (a569af5)
git at git.haskell.org
git at git.haskell.org
Sun Dec 14 17:55:01 UTC 2014
Repository : ssh://git@git.haskell.org/binary
On branch : master
Link : http://git.haskell.org/packages/binary.git/commitdiff/a569af5ee7693c49af401000a9c5dacc2bfa3ad7
>---------------------------------------------------------------
commit a569af5ee7693c49af401000a9c5dacc2bfa3ad7
Author: Lennart Kolmodin <kolmodin at gmail.com>
Date: Sun May 11 15:09:42 2014 +0400
First attempt at adding Travis CI support.
>---------------------------------------------------------------
a569af5ee7693c49af401000a9c5dacc2bfa3ad7
.travis.yml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..eb4be6f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,35 @@
+# NB: don't set `language: haskell` here
+# See https://github.com/hvr/multi-ghc-travis for more information
+
+env:
+ - GHCVER=7.4.2
+ - GHCVER=7.6.3
+ - GHCVER=7.8.2
+
+before_install:
+ - sudo add-apt-repository -y ppa:hvr/ghc
+ - sudo apt-get update
+ - sudo apt-get install cabal-install-1.20 ghc-$GHCVER
+ - export PATH=/opt/ghc/$GHCVER/bin:$PATH
+
+install:
+ - cabal-1.20 update
+# can't use "cabal install --only-dependencies --enable-tests --enable-benchmarks" due to dep-cycle
+ - cabal-1.20 install criterion deepseq mtl "QuickCheck >= 2.7.3" HUnit "test-framework-quickcheck2 >= 0.3" "random >= 1.0.1.0" attoparsec cereal -j
+
+script:
+ - cabal-1.20 configure --enable-tests --enable-benchmarks -v2
+ - cabal-1.20 build
+ - cabal-1.20 test
+# "cabal check" disabled due to -O2 warning
+# - cabal-1.20 check
+ - cabal-1.20 sdist
+# check that the generated source-distribution can be built & installed
+ - export SRC_TGZ=$(cabal-1.20 info . | awk '{print $2 ".tar.gz";exit}') ;
+ cd dist/;
+ if [ -f "$SRC_TGZ" ]; then
+ cabal-1.20 install "$SRC_TGZ";
+ else
+ echo "expected '$SRC_TGZ' not found";
+ exit 1;
+ fi
More information about the ghc-commits
mailing list