sudo: false
language: sh

env:
 - HALCYON_GHC_VERSION=7.10.1 HALCYON_CABAL_VERSION=1.22.6.0 HALCYON_CACHE=$HOME/.halcyon-cache


cache:
  directories:
   - $HOME/.halcyon-cache


addons:
  apt:
    sources:
    - debian-sid
    packages:
    - shellcheck


before_install:
 - git clone https://github.com/mietek/halcyon.git "$HOME/.halcyon"
 - export HALCYON_BASE="$HOME/.halcyon"


install:
 - $HOME/.halcyon/halcyon build
 - $HOME/.halcyon/halcyon paths > halcyon-env
 - ln -sf $HOME/.halcyon/sandbox/cabal.sandbox.config cabal.sandbox.config
 - source halcyon-env
 - cabal install --only-dependencies --enable-tests


script:
 - source halcyon-env
 - cabal configure --enable-tests
 - ./tests/run-tests.sh

sudo: false


addons:
  apt:
    sources:
    - hvr-ghc
    - debian-sid
    packages:
    - shellcheck
    - cabal-install-1.22
    - ghc-7.10.1


before_install:
 - export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH


install:
 - travis_retry cabal update
 - cabal sandbox init --sandbox="`pwd`"/.cabal-sandbox
 - cabal install --only-dependencies --enable-tests


script:
 - cabal configure --enable-tests
 - ./tests/run-tests.sh

Revert "Use halcyon for haskell support on Travis-CI"
Revert "Use halcyon for haskell support on Travis-CI"

This reverts commit 0aa44129d7f1bbd4b16980eef068fff777dcade4.
