2015-09-06 06:39:40 +02:00
|
|
|
sudo: false
|
2017-06-07 15:40:01 +02:00
|
|
|
dist: trusty
|
2014-12-02 17:24:10 +01:00
|
|
|
|
2015-09-24 08:40:27 +02:00
|
|
|
language: c
|
|
|
|
|
|
|
|
env:
|
2016-08-11 16:53:46 +02:00
|
|
|
- STACK_YAML=stack-ghc-7.8.4.yaml
|
2017-05-16 16:17:03 +02:00
|
|
|
- STACK_YAML=stack-ghc-7.10.3.yaml
|
2016-08-11 16:53:46 +02:00
|
|
|
- STACK_YAML=stack.yaml
|
2017-06-07 15:40:01 +02:00
|
|
|
- STACK_YAML=stack-ghc-8.2.1.yaml
|
2015-09-24 08:40:27 +02:00
|
|
|
|
2015-09-06 06:39:40 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libgmp-dev
|
2015-04-20 19:52:29 +02:00
|
|
|
|
2015-04-20 13:38:25 +02:00
|
|
|
install:
|
2016-08-11 16:53:46 +02:00
|
|
|
- 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)
|
2015-04-20 13:38:25 +02:00
|
|
|
|
2015-01-29 01:18:16 +01:00
|
|
|
script:
|
2016-08-11 16:53:46 +02:00
|
|
|
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ] ; then ./scripts/ci-cron.sh ; else stack test --ghc-options=-Werror --no-terminal ; fi
|
2015-02-19 20:32:05 +01:00
|
|
|
|
2015-09-06 06:39:40 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
2015-09-24 08:40:27 +02:00
|
|
|
- $HOME/.tinc/cache
|
2016-08-11 16:53:46 +02:00
|
|
|
- $HOME/.stack
|