Travis: build in a directory created by sdist.
This will catch packaging bugs.
commit56c270d6975b47cddd0170411ff88f1cdd5039b5
authorJohn MacFarlane <jgm@berkeley.edu>
dateFri 3 Jul 2015, 12:48 (11 years ago)
parent639e275
.travis.yml+2
@@ -28,6 +28,8 @@ install:
2828
2929# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
3030script:
31+ - cabal sdist --output-directory=build
32+ - cd build
3133 - cabal-$CABALVER configure --enable-tests -v2 # -v2 provides useful information for debugging
3234 - cabal-$CABALVER build $JOPTS --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)
3335 - cabal-$CABALVER test