git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Check source distributions during Travis builds

This commit adds a step in travis-script.sh to generate a source distribution and then check that the source distribution can be built. Hopefully this will stop things like #980 from happening again. the idea comes from here: https://github.com/hvr/multi-ghc-travis/blob/master/.travis.yml#L98-L103

commit4c3ac4949477b66b8a06879195164a645ce29844 authorHarry Garrood <harry@garrood.me> dateWed 15 Apr 2015, 19:22 (12 years ago) parentc1fe331
1 file changed+6
travis-script.sh+6
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")