Merge pull request #1050 from hdgarrood/check-sdist
Check source distributions during Travis builds
commitfc4325e04fe1e76db85d411442d4047ec4245e73
authorPhil Freeman <paf31@cantab.net>
dateWed 15 Apr 2015, 12:10 (12 years ago)
parent50353404c3ac49
travis-script.sh+6
@@ -9,3 +9,9 @@ fi
99
1010cabal build
1111cabal 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")