diff --git a/.travis.yml b/.travis.yml index e8fd54e..9c9d3bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ install: # - ( $CABAL122 && cabal install cabal-install --constraint "Cabal >= 1.22" && ghc-pkg unregister Cabal ) || true - echo $PATH - which cabal -# - cabal install Cabal --constraint "Cabal == $(cabal --version | grep 'Cabal library' | awk '{ print $3 }' | tail -n1)" + - if [ -n "$(cabal --version | grep 'Cabal library' | awk '{ print $3 }' | tail -n1 | sed -n '/^1.18/p')" ]; then cabal install cabal-install --constraint "Cabal == 1.18.* && > 1.18.0"; fi - cabal install happy - happy --version - cabal install -j --only-dependencies --enable-tests --constraint "tagged < 0.8"