.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.
This commit is contained in:
John MacFarlane 2017-03-20 15:23:49 +01:00
parent f2f6851713
commit 51ed4a98a9

View file

@ -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