29 lines
739 B
YAML
29 lines
739 B
YAML
sudo: false
|
|
|
|
language: c
|
|
|
|
env:
|
|
- STACK_YAML=stack-ghc-7.8.4.yaml
|
|
- STACK_YAML=stack-ghc-7.10.3.yaml
|
|
- STACK_YAML=stack.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
|