7b3c6540ec
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.
26 lines
513 B
YAML
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
|