[commit: packages/parallel] master: Update Travis CI job (b969cb2)
git at git.haskell.org
git at git.haskell.org
Sat Jan 2 08:16:25 UTC 2016
Repository : ssh://git@git.haskell.org/parallel
On branch : master
Link : http://git.haskell.org/packages/parallel.git/commitdiff/b969cb28442a425f178305abb518f14a6c6d78f6
>---------------------------------------------------------------
commit b969cb28442a425f178305abb518f14a6c6d78f6
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Tue Dec 2 17:07:42 2014 +0100
Update Travis CI job
>---------------------------------------------------------------
b969cb28442a425f178305abb518f14a6c6d78f6
.travis.yml | 47 ++++++++++++++++++++++-------------------------
1 file changed, 22 insertions(+), 25 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 20c61fc..8bc5b39 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,40 +1,37 @@
env:
- - GHCVER=7.0.1
- - GHCVER=7.0.2
- - GHCVER=7.0.3
- - GHCVER=7.0.4
- - GHCVER=7.2.2
- - GHCVER=7.4.1
- - GHCVER=7.4.2
- - GHCVER=7.6.1
- - GHCVER=7.6.2
- - GHCVER=7.6.3
- - GHCVER=head
+ - CABALVER=1.16 HCVER=7.0.1
+ - CABALVER=1.16 HCVER=7.0.4
+ - CABALVER=1.16 HCVER=7.2.2
+ - CABALVER=1.16 HCVER=7.4.2
+ - CABALVER=1.16 HCVER=7.6.3
+ - CABALVER=1.18 HCVER=7.8.3
+ - CABALVER=head HCVER=head
matrix:
allow_failures:
- - env: GHCVER=head
+ - env: CABALVER=head HCVER=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
+ - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
+ - travis_retry sudo apt-get update
+ - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
+ - cabal --version
+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
install:
- - cabal-1.18 update
- - cabal-1.18 install --only-dependencies
- - ghc --version
+ - travis_retry cabal update
+ - cabal install --only-dependencies
script:
- - cabal-1.18 configure -v2
- - cabal-1.18 build
- - cabal-1.18 check
- - cabal-1.18 sdist
- - export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
+ - cabal configure -v2
+ - cabal build
+ - cabal check || [ "$CABALVER" == "1.16" ]
+ - cabal sdist
+ - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
cd dist/;
if [ -f "$SRC_TGZ" ]; then
- cabal-1.18 install "$SRC_TGZ";
+ cabal install "$SRC_TGZ";
else
echo "expected '$SRC_TGZ' not found";
exit 1;
More information about the ghc-commits
mailing list