env:
  - CABALVER=1.22 GHCVER=7.8.4 HAPPYVER=1.19.5 ALEXVER=3.1.4

before_install:
  - travis_retry sudo apt-add-repository -y ppa:hvr/ghc
  - travis_retry sudo apt-get update
  - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER happy-$HAPPYVER alex-$ALEXVER
  - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/happy/$HAPPYVER/bin:/opt/alex/$ALEXVER/bin:$PATH

install:
  - cabal --version
  - travis_retry cabal update
  - cp secrets.m4.example secrets.m4
  - make
  - cabal install --enable-tests --reorder-goals --max-backjumps=-1 -j || cat /home/travis/.cabal/logs/language-javascript-0.5.13.log
  - export PATH=$(HOME)/.cabal/bin:$PATH
  - yesod test

env:
  - CABALVER=1.22 GHCVER=7.8.4 HAPPYVER=1.19.5 ALEXVER=3.1.4

before_install:
  - travis_retry sudo apt-add-repository -y ppa:hvr/ghc
  - travis_retry sudo apt-get update
  - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER happy-$HAPPYVER alex-$ALEXVER
  - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/happy/$HAPPYVER/bin:/opt/alex/$ALEXVER/bin:$PATH

install:
  - cabal --version
  - ghc --version
  - happy --version
  - alex --version
  - travis_retry cabal update
  - cp secrets.m4.example secrets.m4
  - make
  - cabal install --enable-tests --reorder-goals --max-backjumps=-1 -j || cat /home/travis/.cabal/logs/language-javascript-0.5.13.log
  - export PATH=$(HOME)/.cabal/bin:$PATH
  - yesod test

Print ghc, happy and alex versions in Travis CI.
Print ghc, happy and alex versions in Travis CI.
