vty/ci/travis_ci_install

13 lines
418 B
Plaintext
Raw Normal View History

2014-04-26 22:17:56 +04:00
#!/bin/bash
set -ex
2014-08-15 03:18:50 +04:00
cabal --version
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