From 51ed4a98a90815fd913c82bb7816c33cf7e8d370 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Mon, 20 Mar 2017 15:23:49 +0100 Subject: [PATCH] .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. --- .travis.yml | 11 +++-------- 1 file 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