on master help sign in
vty/ci/travis_ci_script
11 lines 473 B history raw
1#!/bin/bash
2set -ex
4GHC_IS_OLD=$(python -c "from distutils.version import StrictVersion as SV; print '$GHCVER' != 'head' and SV('$GHCVER') < SV('7.2.3')")
6if [[ "False" == "$GHC_IS_OLD" ]] ; then
7 /opt/cabal/${CABALVER}/bin/cabal configure --enable-tests && /opt/cabal/${CABALVER}/bin/cabal build && /opt/cabal/${CABALVER}/bin/cabal test
8else
9 echo "Skipping tests on ${GHCVER}"
10 /opt/cabal/${CABALVER}/bin/cabal configure && /opt/cabal/${CABALVER}/bin/cabal build
11fi