env:
  - GHCVER=7.4.1
  - GHCVER=7.4.2
  - GHCVER=7.6.3
  - GHCVER=7.8.3

before_install:
  - sudo add-apt-repository -y ppa:hvr/ghc
  - sudo apt-get update -qq
  - sudo apt-get --no-install-recommends install libwebkitgtk-dev libwebkitgtk-3.0-dev
  - sudo apt-get install cabal-install-1.20 ghc-$GHCVER
  - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
  - cabal update
  - |
    if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ]; then
      sudo apt-get install happy-1.19.3 alex-3.1.3
      export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.3/bin:$PATH
    else
      sudo apt-get install happy alex
    fi

install:
  - cabal install Cabal
  - cabal install gtk2hs-buildtools
  - cabal install --enable-tests

script:
  - cabal test

notifications:
  irc:
    channels: "irc.freenode.net#ghcjs"
    skip_join: true
  email: true

env:
  - GHCVER=7.4.1
  - GHCVER=7.4.2
  - GHCVER=7.6.3
  - GHCVER=7.8.3

before_install:
  - sudo add-apt-repository -y ppa:hvr/ghc
  - sudo apt-get update -qq
  - sudo apt-get --no-install-recommends install libwebkitgtk-dev libwebkitgtk-3.0-dev
  - sudo apt-get install cabal-install-1.20 ghc-$GHCVER
  - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
  - cabal update
  - |
    if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ]; then
      sudo apt-get install happy-1.19.3 alex-3.1.3
      export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.3/bin:$PATH
    else
      sudo apt-get install happy alex
    fi

install:
  - cabal install Cabal cabal-install
  - cabal install gtk2hs-buildtools

script:
  - cabal install --enable-tests
  - cabal test
  - cabal clean
  - cabal install -f-gtk3 --enable-tests
  - cabal test

notifications:
  irc:
    channels: "irc.freenode.net#ghcjs"
    skip_join: true
  email: true

Include gtk2 in trvis build
Include gtk2 in trvis build
