aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-03 12:48:19 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-03 12:48:19 -0700
commit56c270d6975b47cddd0170411ff88f1cdd5039b5 (patch)
treee6c5ce23906de127a15c0fdd1a88ab1d61ce1bee /.travis.yml
parent639e27549348cedee290501c15db86b61d38410b (diff)
downloadpandoc-56c270d6975b47cddd0170411ff88f1cdd5039b5.tar.gz
Travis: build in a directory created by sdist.
This will catch packaging bugs.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 3ddebeb07..a25fa3af0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,6 +28,8 @@ install:
# 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.
script:
+ - cabal sdist --output-directory=build
+ - cd build
- cabal-$CABALVER configure --enable-tests -v2 # -v2 provides useful information for debugging
- cabal-$CABALVER build $JOPTS --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)
- cabal-$CABALVER test