Skip to content

Commit fc4325e

Browse files
committed
Merge pull request purescript#1050 from hdgarrood/check-sdist
Check source distributions during Travis builds
2 parents 5035340 + 4c3ac49 commit fc4325e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

travis-script.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ fi
99

1010
cabal build
1111
cabal test
12+
13+
# Check that a source distribution can be successfully generated, and that
14+
# the generated source distribution can be installed
15+
cabal sdist
16+
SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
17+
(cd dist && cabal install --force-reinstalls "$SRC_TGZ")

0 commit comments

Comments
 (0)