[commit: packages/filepath] master: Attempt to integrate test-suite w/ Cabal and Travis-CI (03a6a15)
git at git.haskell.org
git at git.haskell.org
Fri Oct 18 13:30:31 UTC 2013
Repository : ssh://git@git.haskell.org/filepath
On branch : master
Link : http://git.haskell.org/packages/filepath.git/commitdiff/03a6a15eb49fc77163361c735a29997f884f49bc
>---------------------------------------------------------------
commit 03a6a15eb49fc77163361c735a29997f884f49bc
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Fri Oct 18 15:28:16 2013 +0200
Attempt to integrate test-suite w/ Cabal and Travis-CI
Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
>---------------------------------------------------------------
03a6a15eb49fc77163361c735a29997f884f49bc
.travis.yml | 6 ++++--
filepath.cabal | 18 ++++++++++++++++++
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 15f96e3..8aa7583 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,8 +19,10 @@ before_install:
install:
- cabal-1.18 update
- - PATH=/opt/ghc/$GHCVER/bin:$PATH cabal-1.18 install --enable-tests --enable-benchmarks --only-dependencies
+ - 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.*'
script:
- - PATH=/opt/ghc/$GHCVER/bin:$PATH cabal-1.18 configure --enable-tests --enable-benchmarks -v2
+ - cd tests/ && PATH=/opt/ghc/$GHCVER/bin:$PATH runghc ./GenTests.hs
- cabal-1.18 build
+ - cabal-1.18 test
\ No newline at end of file
diff --git a/filepath.cabal b/filepath.cabal
index 570263d..c800edc 100644
--- a/filepath.cabal
+++ b/filepath.cabal
@@ -32,6 +32,24 @@ Library
Build-Depends:
base >= 4 && < 4.8
+ ghc-options: -Wall
+
+-- When run directly from the Git repo, you need to
+-- generate the tests/FilePath_Tests.hs file via
+--
+-- cd tests/ && runghc ./GenTests.hs
+Test-Suite filepath-tests
+ type: exitcode-stdio-1.0
+ default-language: Haskell98
+ main-is: FilePath_Test.hs
+ hs-source-dirs: tests
+ other-modules: AutoTest
+ build-depends:
+ filepath,
+ base,
+ QuickCheck == 2.6.*,
+ random == 1.0.*
+
source-repository head
type: git
location: http://git.haskell.org/packages/filepath.git
More information about the ghc-commits
mailing list