Skip to content
Snippets Groups Projects
Commit 1a2c7136 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Don't test sdist in the main script.

See https://github.com/haskell/cabal/pull/3630#issuecomment-235438329.
parent 76ebe2f6
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ cp cabal.project.travis cabal.project.local
# Cabal
# ---------------------------------------------------------------------
# Needed to work around some bugs in nix-local-build code.
export CABAL_BUILDDIR="${CABAL_BDIR}"
# NB: Best to do everything for a single package together as it's
......@@ -70,16 +71,13 @@ timed cabal new-build Cabal Cabal:package-tests Cabal:unit-tests
# Check for package warnings
(cd Cabal && timed cabal check) || exit $?
# Test that an sdist can be created
(cd Cabal && timed cabal sdist --builddir=${CABAL_BDIR}) || exit $?
unset CABAL_BUILDDIR
# ---------------------------------------------------------------------
# cabal-install
# ---------------------------------------------------------------------
# Setting the build directory here helps avoid sdist bugs.
# Needed to work around some bugs in nix-local-build code.
export CABAL_BUILDDIR="${CABAL_INSTALL_BDIR}"
timed cabal new-build cabal-install:cabal \
......@@ -98,7 +96,6 @@ timed cabal new-build cabal-install:cabal \
(cd cabal-install && timed ${CABAL_INSTALL_SETUP} haddock --builddir=${CABAL_INSTALL_BDIR} ) || exit $?
(cd cabal-install && timed cabal check) || exit $?
(cd cabal-install && timed cabal sdist --builddir=${CABAL_INSTALL_BDIR}) || exit $?
unset CABAL_BUILDDIR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment