[commit: packages/filepath] master: Add `cabal {check, sdist}` steps to `.travis.yml` (b2bb9e7)
git at git.haskell.org
git at git.haskell.org
Sat Oct 19 08:02:06 UTC 2013
Repository : ssh://git@git.haskell.org/filepath
On branch : master
Link : http://git.haskell.org/packages/filepath.git/commitdiff/b2bb9e7daa4e3a90c29a07ed01e56b1e93491ded
>---------------------------------------------------------------
commit b2bb9e7daa4e3a90c29a07ed01e56b1e93491ded
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sat Oct 19 09:59:45 2013 +0200
Add `cabal {check,sdist}` steps to `.travis.yml`
...and simplify `$PATH` handling while at it. Also, make the build-dep
install workaround for GHCVER=6.12.3 more explicit.
Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
>---------------------------------------------------------------
b2bb9e7daa4e3a90c29a07ed01e56b1e93491ded
.travis.yml | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 0e3363e..9c9c7de 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,15 +16,21 @@ 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
- - PATH=/opt/ghc/$GHCVER/bin:$PATH cabal-1.18 install --only-dependencies
- - PATH=/opt/ghc/$GHCVER/bin:$PATH cabal-1.18 install 'QuickCheck==2.6.*'
+ - if [ "$GHCVER" = "6.12.3" ]; then
+ cabal-1.18 install --only-dependencies;
+ cabal-1.18 install 'QuickCheck==2.6.*';
+ else
+ cabal-1.18 install --only-dependencies --enable-tests;
+ fi
script:
- - cd tests/ && PATH=/opt/ghc/$GHCVER/bin:$PATH runghc ./GenTests.hs && cd ..
- - ls -l tests/
- - PATH=/opt/ghc/$GHCVER/bin:$PATH cabal-1.18 configure --enable-tests -v2
+ - cd tests/ && runghc ./GenTests.hs && cd ..
+ - cabal-1.18 configure --enable-tests -v2
- cabal-1.18 build
- cabal-1.18 test
+ - cabal-1.18 check
+ - cabal-1.18 sdist
More information about the ghc-commits
mailing list