git.iko.soy/typeable/pandoc
on master help sign in
Travis: only do sdist with cabal != 1.16.
commit6e121bfafc24c7036b4993b1e514249842a02165 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 5 Jul 2015, 10:42 (11 years ago) parentedf55dc
1 file changed+5−6
.travis.yml+5−6
.travis.yml+5−6
@@ -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