summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-20 15:23:49 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-20 15:24:16 +0100
commit51ed4a98a90815fd913c82bb7816c33cf7e8d370 (patch)
tree7164f5f4c040ed4a1bb80caa19d8893f066b74b9 /.travis.yml
parentf2f6851713674545e2f303b95589cbaff8e6a6b9 (diff)
.travis.yml: create a source dist and do cabal build and test there.
That way we catch errors due to files missing from the data section of pandoc.cabal.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 3 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index dc717451b..d5924c24c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -118,13 +118,8 @@ script:
;;
cabal)
cabal configure --enable-tests --enable-benchmarks -v2 -ffast --ghc-options="-O0 -Wall -fno-warn-unused-do-bind -Werror" && \
- cabal build -j && \
- cabal check && \
- cabal test -j && \
- cabal copy && \
- cabal sdist && \
- SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && \
- cd dist && \
- cabal install -j -v2 -ffast --ghc-options="-O0 -Wall -fno-warn-unused-do-bind -Werror" --force-reinstall "$SRC_TGZ"
+ cabal sdist --output-directory=sourcedist && \
+ cd sourcedist && \
+ cabal install -j -v2 -ffast --ghc-options="-O0 -Wall -fno-warn-unused-do-bind -Werror" --force-reinstall --test
;;
esac