[commit: packages/binary] master: Use Travis CI containers. (bf75741)
git at git.haskell.org
git at git.haskell.org
Wed Dec 16 09:43:21 UTC 2015
Repository : ssh://git@git.haskell.org/binary
On branch : master
Link : http://git.haskell.org/packages/binary.git/commitdiff/bf757416875b1683345e6d55f2dcad3a9b0ae00e
>---------------------------------------------------------------
commit bf757416875b1683345e6d55f2dcad3a9b0ae00e
Author: Lennart Kolmodin <kolmodin at google.com>
Date: Thu Oct 29 17:20:56 2015 +0100
Use Travis CI containers.
>---------------------------------------------------------------
bf757416875b1683345e6d55f2dcad3a9b0ae00e
.travis.yml | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index bec9245..56097f2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,20 +1,31 @@
-# NB: don't set `language: haskell` here
# See https://github.com/hvr/multi-ghc-travis for more information
-env:
- - CABALVER=1.18 GHCVER=7.4.2
- - CABALVER=1.18 GHCVER=7.6.3
- - CABALVER=1.18 GHCVER=7.8.4
- - CABALVER=1.22 GHCVER=7.10.2
+language: c
+
+sudo: false
+
+matrix:
+ include:
+ - env: CABALVER=1.18 GHCVER=7.4.2
+ addons: {apt: {packages: [cabal-install-1.18,ghc-7.4.2], sources: [hvr-ghc]}}
+ - env: CABALVER=1.18 GHCVER=7.6.3
+ addons: {apt: {packages: [cabal-install-1.18,ghc-7.6.3], sources: [hvr-ghc]}}
+ - env: CABALVER=1.18 GHCVER=7.8.4
+ addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
+ - env: CABALVER=1.22 GHCVER=7.10.2
+ addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.2], sources: [hvr-ghc]}}
+ - env: CABALVER=head GHCVER=head
+ addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
+
+ allow_failures:
+ - env: CABALVER=head GHCVER=head
before_install:
- - sudo add-apt-repository -y ppa:hvr/ghc
- - sudo apt-get update
- - sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
install:
- - cabal update
+ - cabal --version
+ - travis_retry cabal update
- cabal sandbox init
# can't use "cabal install --only-dependencies --enable-tests --enable-benchmarks" due to dep-cycle
- cabal install criterion deepseq mtl "QuickCheck >= 2.8" HUnit "test-framework-quickcheck2 >= 0.3" "random >= 1.0.1.0" attoparsec cereal 'Cabal == 1.22.*' tar zlib -j
More information about the ghc-commits
mailing list