git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Reuse sandbox in test-install.sh
commit66e78d89157b47adad9e991b641b23efa8b0ec40 authorOleg Grenrus <oleg.grenrus@iki.fi> dateFri 14 Aug 2015, 11:04 (11 years ago) parentae731b3
1 file changed+6−5
travis/test-install.sh+6−5
travis/test-install.sh+6−5
@@ -6,11 +6,12 @@ cabal sdist
66if SRC_TGZ="$PWD/dist/$(cabal info . | awk '{print $2;exit}').tar.gz"
77then
88 if [ "$RUNSDISTTESTS" = "YES" ]; then
9− mkdir test-install
10− cd test-install
11− tar --strip-components=1 -xzf $SRC_TGZ
12− cabal install --enable-tests --force-reinstalls
13− cabal test
9+ mkdir test-install
10+ cd test-install
11+ tar --strip-components=1 -xzf $SRC_TGZ
12+ cabal sandbox init --sandbox ../.cabal-sandbox
13+ cabal install --enable-tests --force-reinstalls
14+ cabal test
1415 else
1516 cabal install "$SRC_TGZ"
1617 fi