mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-25 19:22:08 +03:00
12 lines
473 B
Bash
Executable File
12 lines
473 B
Bash
Executable File
#!/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
|
|
/opt/cabal/${CABALVER}/bin/cabal configure --enable-tests && /opt/cabal/${CABALVER}/bin/cabal build && /opt/cabal/${CABALVER}/bin/cabal test
|
|
else
|
|
echo "Skipping tests on ${GHCVER}"
|
|
/opt/cabal/${CABALVER}/bin/cabal configure && /opt/cabal/${CABALVER}/bin/cabal build
|
|
fi
|