2014-04-26 22:17:56 +04:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
2014-08-15 03:18:50 +04:00
|
|
|
cabal --version
|
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 install --only-dependencies --enable-tests
|
2014-04-26 22:17:56 +04:00
|
|
|
else
|
2015-01-02 12:39:11 +03:00
|
|
|
/opt/cabal/${CABALVER}/bin/cabal install --only-dependencies
|
2014-04-26 22:17:56 +04:00
|
|
|
echo "Skipping test dependency install on ${GHCVER}"
|
|
|
|
fi
|