diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-20 15:23:49 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-20 15:24:16 +0100 |
commit | 51ed4a98a90815fd913c82bb7816c33cf7e8d370 (patch) | |
tree | 7164f5f4c040ed4a1bb80caa19d8893f066b74b9 | |
parent | f2f6851713674545e2f303b95589cbaff8e6a6b9 (diff) | |
download | pandoc-51ed4a98a90815fd913c82bb7816c33cf7e8d370.tar.gz |
.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.
-rw-r--r-- | .travis.yml | 11 |
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 |