git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Test sdist installation
commitbeb055654321ac62a4bc3816db53b9ab6b671eca authorOleg Grenrus <oleg.grenrus@iki.fi> dateFri 14 Aug 2015, 07:05 (11 years ago) parent72359d7
1 file changed+11−3
travis/test-install.sh+11−3
travis/test-install.sh+11−3
@@ -1,13 +1,21 @@
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