]> git.immae.eu Git - github/fretlink/hmacaroons.git/blobdiff - .travis.yml
Add ~/.cabal/bin to PATH
[github/fretlink/hmacaroons.git] / .travis.yml
index 56abcee3ff2cfbe4f4a5d49da028fdabdf76595a..e30975be4ecb780828c756aed98d462e3ced14b7 100644 (file)
@@ -35,7 +35,7 @@ env:
 
 before_install:
  - unset CC
- - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
+ - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
 
 install:
  - cabal --version
@@ -77,13 +77,13 @@ install:
 # any command which exits with a non-zero exit code causes the build to fail.
 script:
  - if [ -f configure.ac ]; then autoreconf -i; fi
- - cabal configure --enable-tests --enable-benchmarks -v2  # -v2 provides useful information for debugging
+ - cabal install hpc-coveralls --constraint=retry==0.6
+ - cabal configure --enable-tests --enable-benchmarks -v2 --enable-coverage  # -v2 provides useful information for debugging
  - cabal build   # this builds all libraries and executables (including tests/benchmarks)
- - cabal test
+ - run-cabal-test test
  - cabal check
  - cabal sdist   # tests that a source-distribution can be generated
 
- - if [ true = $PUSH_DOCS ]; then bash ./scripts/pushdoc.sh; fi
 
 # Check that the resulting source distribution can be built & installed.
 # If there are no other `.tar.gz` files in `dist`, this can be even simpler:
@@ -91,6 +91,10 @@ script:
  - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
    (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
 
+after_script:
+ - if [ true = $PUSH_DOCS ]; then bash ./scripts/pushdoc.sh; fi
+ - hpc-coveralls test
+
 
 
 # EOF