servant/.travis.yml
Arian van Putten 7b3c6540ec Remove redundant build from .travis.yml file.
The `build` in the `.travis.yml` file is redundant. `stack test` is just
an alias for `stack build --test`.

Also in the old way of doing things,  `-Werror` is actually not set when
running tests. So it is ignored for  test files..

Now also test files need to have no warnings.
2015-10-05 00:00:35 +02:00

26 lines
513 B
YAML

sudo: false
addons:
apt:
packages:
- libgmp-dev
env:
- STACK_YAML=stack-ghc-7.8.4.yaml
- STACK_YAML=stack.yaml
install:
# stack
- mkdir -p ~/.local/bin
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar -xvzf -
- mv stack ~/.local/bin
- export PATH=~/.local/bin:$PATH
- stack --version
script:
- stack setup
- stack build --test --ghc-options "-Werror"
cache:
directories:
- $HOME/.stack