File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11set -e
22
33# Check that a source distribution can be successfully generated, and that
4- # the generated source distribution can be installed
4+ # the generated source distribution can be installed and tested
55cabal sdist
6- if SRC_TGZ=" $PWD /dist/$( cabal info . | awk ' {print $2;exit}' ) .tar.gz"
6+ PKGNAME=$( cabal info . | awk ' {print $2;exit}' )
7+ if SRC_TGZ=" $PWD /dist/$PKGNAME .tar.gz"
78then
89 mkdir -p ../install-test
910 cd ../install-test
1011 mkdir -p sandboxes/$GHCVER /${STACKAGE:- none}
1112 cabal sandbox init --sandbox sandboxes/$GHCVER /${STACKAGE:- none}
12- cabal install -j2 --ghc-options=' +RTS -A32m -RTS' " $SRC_TGZ "
13+
14+ if [ ` echo " $STACKAGE " | sed ' s/\..*$//' ` = " lts-3" ]; then
15+ tar -xzf i--strip-components=1 $PKGNAME .tar.gz
16+ cabal install
17+ cabal test
18+ else
19+ cabal install " $SRC_TGZ "
20+ fi
1321fi
You can’t perform that action at this time.
0 commit comments