2014-04-26 22:17:56 +04:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
2016-04-13 09:47:50 +03:00
|
|
|
|
|
|
|
GHC_IS_OLD=$(python -c "from distutils.version import StrictVersion as SV; print '$GHCVER' != 'head' and SV('$GHCVER') < SV('7.2.3')")
|
|
|
|
|
|
|
|
if [[ "False" == "$GHC_IS_OLD" ]] ; then
|
2015-01-02 12:39:11 +03:00
|
|
|
/opt/cabal/${CABALVER}/bin/cabal configure --enable-tests && /opt/cabal/${CABALVER}/bin/cabal build && /opt/cabal/${CABALVER}/bin/cabal test
|
2014-04-26 22:17:56 +04:00
|
|
|
else
|
|
|
|
echo "Skipping tests on ${GHCVER}"
|
2015-01-02 12:39:11 +03:00
|
|
|
/opt/cabal/${CABALVER}/bin/cabal configure && /opt/cabal/${CABALVER}/bin/cabal build
|
2014-04-26 22:17:56 +04:00
|
|
|
fi
|