mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
Fix ghc version comparison in travis scripts
This commit is contained in:
parent
e42c5799e3
commit
0fbcf0a24c
@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
cabal --version
|
cabal --version
|
||||||
if [[ "${GHCVER}" > "7.2.2" ]] ; then
|
|
||||||
|
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 install --only-dependencies --enable-tests
|
/opt/cabal/${CABALVER}/bin/cabal install --only-dependencies --enable-tests
|
||||||
else
|
else
|
||||||
/opt/cabal/${CABALVER}/bin/cabal install --only-dependencies
|
/opt/cabal/${CABALVER}/bin/cabal install --only-dependencies
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
if [[ "${GHCVER}" > "7.2.2" ]] ; then
|
|
||||||
|
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
|
/opt/cabal/${CABALVER}/bin/cabal configure --enable-tests && /opt/cabal/${CABALVER}/bin/cabal build && /opt/cabal/${CABALVER}/bin/cabal test
|
||||||
else
|
else
|
||||||
echo "Skipping tests on ${GHCVER}"
|
echo "Skipping tests on ${GHCVER}"
|
||||||
|
Loading…
Reference in New Issue
Block a user