servant-quickcheck/.travis.yml

39 lines
936 B
YAML
Raw Normal View History

2016-04-22 14:00:23 +03:00
sudo: false
language: c
2017-03-11 00:36:45 +03:00
env:
- STACK_YAML=stack.yaml
- STACK_YAML=stack-lts-7.yaml
- STACK_YAML=stack-lts-6.yaml
2017-10-19 10:20:49 +03:00
- STACK_YAML=stack-lts-9.yaml
2017-03-11 00:36:45 +03:00
addons:
apt:
packages: libgmp-dev
2016-04-22 14:00:23 +03:00
install:
2017-03-11 00:36:45 +03:00
# stack
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- stack --version
2016-04-22 14:00:23 +03:00
script:
2017-03-11 00:36:45 +03:00
- stack setup --no-terminal
- stack build --ghc-options=-Werror --no-terminal
- stack test --ghc-options=-Werror --no-terminal --coverage
- stack haddock --no-terminal
2016-04-22 14:00:23 +03:00
2017-10-18 21:30:13 +03:00
after_script:
# SHC only has a build for 8.0.1, not above
- if [ "$STACK_YAML" == stack-lts-7.yaml ]
- travis_retry curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.4.0/shc-linux-x64-8.0.1.tar.bz2 | tar -xj
- ./shc servant-quickcheck spec
2016-04-22 14:00:23 +03:00
cache:
directories:
2017-03-11 00:36:45 +03:00
- $HOME/.stack