@@ -25,15 +25,14 @@ install:
2525 - cabal-$CABALVER update
2626# - git clone https://github.com/jgm/pandoc-types && cd pandoc-types && cabal-1.18 install && cd ..
2727 - cabal-$CABALVER install $JOPTS --only-dependencies --enable-tests
28−# hsb2hs is needed for -fembed_data_files, and is needed for sdist on
29−# older cabal versions (1.16):
30− - cabal-$CABALVER install hsb2hs
3128
3229# 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.
3330script:
34− - cabal-$CABALVER configure --enable-tests # needed for sdist with ghc 7.4.2/cabal 1.16
35− - cabal-$CABALVER sdist --output-directory=build
36− - cd build
31+ - |
32+ if [ "${CABALVER}" != "1.16" ]; then
33+ cabal-$CABALVER sdist --output-directory=build
34+ cd build
35+ fi
3736 - cabal-$CABALVER configure --enable-tests -v2 # -v2 provides useful information for debugging
3837 - cabal-$CABALVER build $JOPTS --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)
3938 - cabal-$CABALVER test