sudo: false
dist: trusty
language: generic

addons:
  apt:
    packages:
      - libpango1.0-dev
      - libcairo2-dev
      - libgtk2.0-dev

cache:
  directories:
  - $HOME/.ghc
  - $HOME/.local/bin
  - $HOME/.stack
  - .stack-work

before_install:
  # stack
  - mkdir -p ~/.local/bin
  - export PATH=~/.local/bin:$PATH
  - if [[ ! -x ~/.local/bin/stack ]]; then travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
  - stack --version

  # GHC
  - stack --no-nix setup
  - stack exec --no-nix -- ghc --version

install:
  - travis_wait stack --no-nix --no-terminal install halma --only-dependencies
  - travis_wait stack --no-nix --no-terminal install --only-dependencies

script:
  - stack --no-nix --no-terminal test --haddock --no-haddock-deps
sudo: false
dist: trusty
language: generic

addons:
  apt:
    packages:
      - libpango1.0-dev
      - libcairo2-dev
      - libgtk2.0-dev

cache:
  directories:
  - $HOME/.ghc
  - $HOME/.local/bin
  - $HOME/.stack
  - .stack-work

before_install:
  # stack
  - mkdir -p ~/.local/bin
  - export PATH=~/.local/bin:$PATH
  - if [[ ! -x ~/.local/bin/stack ]]; then travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
  - stack --version

  # GHC
  - stack --no-nix setup
  - stack exec --no-nix -- ghc --version

install:
  - travis_wait stack --no-nix --no-terminal install halma --only-dependencies
  - travis_wait stack --no-nix --no-terminal install halma-gui --only-dependencies
  - travis_wait stack --no-nix --no-terminal install --only-dependencies

script:
  - stack --no-nix --no-terminal test --haddock --no-haddock-deps
Install halma-gui separately to avoid timeout
Travis: Install halma-gui separately to avoid timeout
