git.iko.soy/rowtype-yoga/purescript-native
on ef61dad help sign in
17 lines 481 B history raw
1set -e
3if [ -z $( git describe --tags --exact-match 2>/dev/null ) && -n "$COVERAGE_SUITE" ]
4then
5 cabal configure --enable-tests --enable-coverage -v2
6else
7 cabal configure --enable-tests -v2
8fi
10cabal build
11cabal test
13# Check that a source distribution can be successfully generated, and that
14# the generated source distribution can be installed
15cabal sdist
16SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
17 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")