Skip to content

Commit

Permalink
Don't test sdist in the main script.
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Jul 27, 2016
1 parent 76ebe2f commit 47ebcc4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions travis-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ cp cabal.project.travis cabal.project.local
# Cabal
# ---------------------------------------------------------------------

export CABAL_BUILDDIR="${CABAL_BDIR}"

# NB: Best to do everything for a single package together as it's
# more efficient (since new-build will uselessly try to rebuild
# Cabal otherwise).
Expand Down Expand Up @@ -70,18 +68,11 @@ 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.
export CABAL_BUILDDIR="${CABAL_INSTALL_BDIR}"

timed cabal new-build cabal-install:cabal \
cabal-install:integration-tests \
cabal-install:integration-tests2 \
Expand All @@ -98,9 +89,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

# Check what we got
${CABAL_INSTALL_BDIR}/build/cabal/cabal --version

0 comments on commit 47ebcc4

Please sign in to comment.