servant/.travis.yml
2017-06-07 17:29:15 +03:00

31 lines
788 B
YAML

sudo: false
dist: trusty
language: c
env:
- STACK_YAML=stack-ghc-7.8.4.yaml
- STACK_YAML=stack-ghc-7.10.3.yaml
- STACK_YAML=stack.yaml
- STACK_YAML=stack-ghc-8.2.1.yaml
addons:
apt:
packages:
- libgmp-dev
install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.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
- stack setup --no-terminal
- (cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
script:
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ] ; then ./scripts/ci-cron.sh ; else stack test --ghc-options=-Werror --no-terminal ; fi
cache:
directories:
- $HOME/.tinc/cache
- $HOME/.stack