dependencies:
  cache_directories:
    - "~/.cabal"
    - "~/.local"
    - "~/.stack"
    - ".stack-work"
  pre:
    - wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
    - echo 'deb http://download.fpcomplete.com/ubuntu/trusty stable main'|sudo tee /etc/apt/sources.list.d/fpco.list
    - sudo apt-get update
    - sudo apt-get install -y stack
  override:
    - stack --no-terminal setup
    - stack --no-terminal build --test --only-dependencies -j1

test:
  override:
    - stack --no-terminal build --test
    - stack --no-terminal test

dependencies:
  cache_directories:
    - "~/.cabal"
    - "~/.local"
    - "~/.stack"
    - ".stack-work"
  pre:
    - wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
    - echo 'deb http://download.fpcomplete.com/ubuntu/trusty stable main'|sudo tee /etc/apt/sources.list.d/fpco.list
    - sudo apt-get update
    - sudo apt-get install -y stack
  override:
    - stack --no-terminal setup
    - stack --no-terminal build --haddock --test --only-dependencies -j1

test:
  override:
    - stack --no-terminal build --test
    - stack --no-terminal test
    - stack --no-terminal haddock

general:
  artifacts:
    - .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/doc/html/graphql-api

Build Haddock documentation in CI
Build Haddock documentation in CI

Fixes #12
