vty/ci/travis_ci_script

12 lines
473 B
Plaintext
Raw Normal View History

2014-04-26 22:17:56 +04:00
#!/bin/bash
set -ex
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